https://git.reactos.org/?p=reactos.git;a=commitdiff;h=07efa2ef53b3538b314c81...
commit 07efa2ef53b3538b314c814a86ff7560ed8a137e Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Mon Mar 30 12:24:59 2020 +0200 Commit: GitHub noreply@github.com CommitDate: Mon Mar 30 12:24:59 2020 +0200
[SHELL32] HCR_GetIconA(): Properly use icon_idx (#2482)
CORE-11713
Import https://source.winehq.org/git/wine.git/commit/7cc2806e0e0d97c0df93e2695351a4... --- dll/win32/shell32/wine/classes.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dll/win32/shell32/wine/classes.c b/dll/win32/shell32/wine/classes.c index c2c014c09d0..b2a5ca54256 100644 --- a/dll/win32/shell32/wine/classes.c +++ b/dll/win32/shell32/wine/classes.c @@ -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; }