comctl32/imagelist: Clear pixels that fall outside the mask when generating an alpha channel.
diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 27d95f5..11ff27f 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -205,6 +205,8 @@
for (j = n * width; j < (n + 1) * width; j++)
if (!mask_bits || !((mask_bits[i * mask_width + j / 8] << (j % 8)) & 0x80))
bits[i * bm.bmWidth + j] |= 0xff000000;
+ else
+ bits[i * bm.bmWidth + j] = 0;
if (hdcMask) StretchBlt( himl->hdcMask, pt.x, pt.y, himl->cx, himl->cy,
hdcMask, n * width, 0, width, height, SRCCOPY );
}