Commit 4fb5ab47 authored by Dave Hawkes's avatar Dave Hawkes Committed by Alexandre Julliard

With some apps a fault was possible in ExtractAssociatedIcon.

parent dbb6ab22
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment