Commit 820aa376 authored by Maxime Bellengé's avatar Maxime Bellengé Committed by Alexandre Julliard

Fix a regression in ImageList_Create when creating a dibsection.

parent 8fec392e
......@@ -599,9 +599,10 @@ ImageList_Create (INT cx, INT cy, UINT flags,
else
himl->uBitsPixel = (UINT)GetDeviceCaps (himl->hdcImage, BITSPIXEL);
if (himl->cMaxImage > 0)
if (himl->cMaxImage > 0) {
himl->hbmImage = ImageList_CreateImage(himl->hdcImage, himl, cx * himl->cMaxImage, cy);
else
SelectObject(himl->hdcImage, himl->hbmImage);
} else
himl->hbmImage = 0;
if ((himl->cMaxImage > 0) && (himl->flags & ILC_MASK)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment