Fixed small ==, != mixup.
This commit is contained in:
parent
5591bc6323
commit
64307f3cea
|
@ -2120,7 +2120,7 @@ ImageList_SetImageCount (HIMAGELIST himl, INT iImageCount)
|
|||
|
||||
hbmNewBitmap = CreateBitmap (nNewCount * himl->cx, himl->cy,
|
||||
1, himl->uBitsPixel, NULL);
|
||||
if (hbmNewBitmap == 0)
|
||||
if (hbmNewBitmap != 0)
|
||||
{
|
||||
SelectObject (hdcImageList, himl->hbmImage);
|
||||
SelectObject (hdcBitmap, hbmNewBitmap);
|
||||
|
|
Loading…
Reference in New Issue