win32ss/gdi/ntgdi/dibobj.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/win32ss/gdi/ntgdi/dibobj.c b/win32ss/gdi/ntgdi/dibobj.c index 3d88101c8ab..2f4c515f107 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 + { + /* Use default palette */ + iUsage = DIB_PAL_COLORS; + } /* Check how to use the colors */ if (iUsage == DIB_PAL_COLORS)