diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index 3e93f809e14..8e9f7afebb3 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -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);