With some apps a fault was possible in ExtractAssociatedIcon.

This commit is contained in:
Dave Hawkes 2000-07-09 12:17:23 +00:00 committed by Alexandre Julliard
parent dbb6ab2261
commit 4fb5ab4765
1 changed files with 4 additions and 0 deletions

View File

@ -978,9 +978,13 @@ HICON WINAPI ExtractAssociatedIconA(HINSTANCE hInst, LPSTR lpIconPath, LPWORD lp
*/
HICON16 WINAPI ExtractAssociatedIcon16(HINSTANCE16 hInst, LPSTR lpIconPath, LPWORD lpiIcon)
{ HICON16 hIcon;
DWORD dwDummyIcon = 0;
TRACE("\n");
if(lpiIcon == NULL)
lpiIcon = &dwDummyIcon;
hIcon = ExtractIcon16(hInst, lpIconPath, *lpiIcon);
if( hIcon < 2 )