Fix recently broken GetDisplayNamesOf of names of shell extension
dlls.
diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c
index 4d1a7b5..ac6971a 100644
--- a/dlls/shell32/classes.c
+++ b/dlls/shell32/classes.c
@@ -149,7 +149,7 @@
*
* Gets the icon for a filetype
*/
-static HRESULT HCR_RegOpenClassIDKey(REFIID riid, HKEY *hkey)
+static BOOL HCR_RegOpenClassIDKey(REFIID riid, HKEY *hkey)
{
char xriid[50];
sprintf( xriid, "CLSID\\{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
@@ -159,7 +159,7 @@
TRACE("%s\n",xriid );
- return RegOpenKeyExA(HKEY_CLASSES_ROOT, xriid, 0, KEY_READ, hkey);
+ return !RegOpenKeyExA(HKEY_CLASSES_ROOT, xriid, 0, KEY_READ, hkey);
}
static BOOL HCR_RegGetDefaultIconW(HKEY hkey, LPWSTR szDest, DWORD len, LPDWORD dwNr)
@@ -253,7 +253,7 @@
HKEY hkey;
BOOL ret = FALSE;
- if (!HCR_RegOpenClassIDKey(riid, &hkey))
+ if (HCR_RegOpenClassIDKey(riid, &hkey))
{
ret = HCR_RegGetDefaultIconW(hkey, szDest, len, dwNr);
RegCloseKey(hkey);