Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/msstyles.c:
- if (dib.dsBm.bmBitsPixel == 24)
- {
int y;
stride = (dib.dsBmih.biWidth * 3 + 3) & ~3;
p = dib.dsBm.bmBits;
for (y = 0; y < dib.dsBmih.biHeight; ++y)
{
p = (BYTE *)dib.dsBm.bmBits + stride * y;
for (n = 0; n < dib.dsBmih.biWidth; ++n, p += 3)
{
if (RGB(p[0], p[1], p[2]) == DEFAULT_TRANSPARENT_COLOR)
{
*has_default_transparent_colour = TRUE;
break;
This should be a return.