user32: Fix to succeed reliably in test where it works by accident.
This commit is contained in:
parent
0da02fb246
commit
d553159eac
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue