Skip to content
Snippets Groups Projects
Commit 4fb5ab47 authored by Dave Hawkes's avatar Dave Hawkes Committed by Alexandre Julliard
Browse files

With some apps a fault was possible in ExtractAssociatedIcon.

parent dbb6ab22
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
......
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