[WIN32K]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 5 May 2012 22:06:15 +0000 (22:06 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 5 May 2012 22:06:15 +0000 (22:06 +0000)
Someone passes iUsage == 2, so don't assert in that case, but ignore it as long as it's not supported.

svn path=/trunk/; revision=56520

reactos/win32ss/gdi/ntgdi/dibobj.c

index 9df928f..78eb3d8 100644 (file)
@@ -171,11 +171,11 @@ CreateDIBPalette(
             /* Mark the palette as a brush hack palette */
             ppal->flFlags |= PAL_BRUSHHACK;
         }
             /* Mark the palette as a brush hack palette */
             ppal->flFlags |= PAL_BRUSHHACK;
         }
-        else if (iUsage == 2)
-        {
+//        else if (iUsage == 2)
+//        {
             // FIXME: this one is undocumented
             // FIXME: this one is undocumented
-            ASSERT(FALSE);
-        }
+//            ASSERT(FALSE);
+//        }
         else // if (iUsage == DIB_RGB_COLORS)
         {
             /* The colors are an array of RGBQUAD values */
         else // if (iUsage == DIB_RGB_COLORS)
         {
             /* The colors are an array of RGBQUAD values */