[COMCTL32] ImageList_LoadImageW with CLR_NONE should not use a mask (#7869)

CORE-16146
This commit is contained in:
Whindmar Saksit 2025-04-06 19:00:54 +02:00 committed by GitHub
parent ff7bf747bf
commit 182f353b2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2263,7 +2263,20 @@ ImageList_LoadImageW (HINSTANCE hi, LPCWSTR lpbmp, INT cx, INT cGrow,
DeleteObject (handle);
return NULL;
}
#ifdef __REACTOS__
if (clrMask == CLR_NONE)
nImageCount = ImageList_Add(himl, handle, NULL);
else
nImageCount = ImageList_AddMasked(himl, handle, clrMask);
if (nImageCount < 0)
{
ImageList_Destroy(himl);
himl = NULL;
}
#else
ImageList_AddMasked (himl, handle, clrMask);
#endif
}
else if ((uType == IMAGE_ICON) || (uType == IMAGE_CURSOR)) {
ICONINFO ii;