- Alt-Tab Use windows logo icon as default. Patch from CORE-7864 #resolve

svn path=/trunk/; revision=66044
This commit is contained in:
James Tabor 2015-01-17 00:31:19 +00:00
parent 3163c145e4
commit 17b607a05e

View file

@ -121,8 +121,13 @@ BOOL CALLBACK EnumerateCallback(HWND window, LPARAM lParam)
hIcon = (HICON)SendMessageW(window, WM_GETICON, ICON_SMALL2, 0);
if (!hIcon)
{
// If all fails, give up and continue with the next window
return TRUE;
// using windows logo icon as default
hIcon = gpsi->hIconWindows;
if (!hIcon)
{
//if all attempts to get icon fails go to the next window
return TRUE;
}
}
}
}