user32: Fix to succeed reliably in test where it works by accident.

This commit is contained in:
Jan Zerebecki 2007-04-16 09:54:14 +02:00 committed by Alexandre Julliard
parent 0da02fb246
commit d553159eac
1 changed files with 2 additions and 0 deletions

View File

@ -1796,6 +1796,8 @@ HICON WINAPI CreateIconIndirect(PICONINFO iconinfo)
iconinfo->hbmColor, iconinfo->hbmMask,
iconinfo->xHotspot, iconinfo->yHotspot, iconinfo->fIcon);
if (!iconinfo->hbmMask) return 0;
if (iconinfo->hbmColor)
{
GetObjectW( iconinfo->hbmColor, sizeof(bmpXor), &bmpXor );