mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
[COMCTL32] ImageList_LoadImageW with CLR_NONE should not use a mask (#7869)
CORE-16146
This commit is contained in:
parent
ff7bf747bf
commit
182f353b2f
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue