diff --git a/win32ss/gdi/ntgdi/dibobj.c b/win32ss/gdi/ntgdi/dibobj.c index 3d88101c8a..da0dfcb6b8 100644 --- a/win32ss/gdi/ntgdi/dibobj.c +++ b/win32ss/gdi/ntgdi/dibobj.c @@ -77,6 +77,11 @@ CreateDIBPalette( /* This is how many colors we can actually process */ cColors = min(cColors, pbmi->bmiHeader.biClrUsed); } + else + { + DPRINT1("cColors is '%d'.\n", cColors); + if (cColors == 256) cColors = 0; + } /* Check how to use the colors */ if (iUsage == DIB_PAL_COLORS)