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
This commit is contained in:
Timo Kreuzer
2012-05-05 22:06:15 +00:00
parent d31e05222e
commit 2b1b0f0fa5
+4 -4
View File
@@ -171,11 +171,11 @@ CreateDIBPalette(
/* 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
ASSERT(FALSE);
}
// ASSERT(FALSE);
// }
else // if (iUsage == DIB_RGB_COLORS)
{
/* The colors are an array of RGBQUAD values */