Skip to content
Snippets Groups Projects
Commit 8b466e0c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

nIconIndex == -1 should return nr of available icons, not 0.

parent d327fcbd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment