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

CORE-11713

Import
7cc2806e0e
This commit is contained in:
Serge Gautherie 2020-03-30 12:24:59 +02:00 committed by GitHub
parent 78d8705181
commit 07efa2ef53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}