Avoid calling FindExecutable16.

This commit is contained in:
Alexandre Julliard 2002-10-10 23:29:21 +00:00
parent 240f09391a
commit 8aab09e5d8
1 changed files with 2 additions and 2 deletions

View File

@ -475,9 +475,9 @@ HICON WINAPI ExtractAssociatedIconA(HINSTANCE hInst, LPSTR lpIconPath, LPWORD lp
if( hIcon < (HICON)2 ) if( hIcon < (HICON)2 )
{ if( hIcon == (HICON)1 ) /* no icons found in given file */ { if( hIcon == (HICON)1 ) /* no icons found in given file */
{ char tempPath[0x80]; { char tempPath[0x80];
UINT16 uRet = FindExecutable16(lpIconPath,NULL,tempPath); HINSTANCE uRet = FindExecutableA(lpIconPath,NULL,tempPath);
if( uRet > 32 && tempPath[0] ) if( uRet > (HINSTANCE)32 && tempPath[0] )
{ strcpy(lpIconPath,tempPath); { strcpy(lpIconPath,tempPath);
hIcon = ExtractIconA(hInst, lpIconPath, *lpiIcon); hIcon = ExtractIconA(hInst, lpIconPath, *lpiIcon);
if( hIcon > (HICON)2 ) if( hIcon > (HICON)2 )