mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
nIconIndex == -1 should return nr of available icons, not 0.
This commit is contained in:
parent
d327fcbdb3
commit
8b466e0ce8
@ -220,7 +220,7 @@ HICON WINAPI ICO_ExtractIconEx(LPCSTR lpszExeFileName, HICON * RetPtr, UINT nIco
|
||||
|
||||
TRACE("(file %s,start %d,extract %d\n", lpszExeFileName, nIconIndex, n);
|
||||
|
||||
if( hFile == HFILE_ERROR || !n )
|
||||
if( hFile == HFILE_ERROR || (nIconIndex!=-1 && !n) )
|
||||
return hRet;
|
||||
|
||||
sig = SHELL_GetResourceTable(hFile,&pData);
|
||||
|
Loading…
Reference in New Issue
Block a user