[SHELL32] HCR_GetIconA(): Properly use icon_idx (#2482)

CORE-11713

Import
https://source.winehq.org/git/wine.git/commit/7cc2806e0e0d97c0df93e2695351a4d3a3c72254
This commit is contained in:
Serge Gautherie
2020-03-30 12:24:59 +02:00
committed by GitHub
parent 78d8705181
commit 07efa2ef53
+6 -1
View File
@@ -332,7 +332,12 @@ BOOL HCR_GetIconA(LPCSTR szClass, LPSTR szDest, LPCSTR szName, DWORD len, int* p
ret = HCR_RegGetIconA(hkey, szDest, szName, len, picon_idx);
RegCloseKey(hkey);
}
TRACE("-- %s %i\n", szDest, *picon_idx);
if (ret)
TRACE("-- %s %i\n", szDest, *picon_idx);
else
TRACE("-- not found\n");
return ret;
}