With some apps a fault was possible in ExtractAssociatedIcon.
This commit is contained in:
parent
dbb6ab2261
commit
4fb5ab4765
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue