Commit ea8795b9 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

GDISelectPalette16 checked GetObjectType() return value for

PALETTE_MAGIC instead of OBJ_PAL.
parent 8aa79fbe
......@@ -644,7 +644,7 @@ HPALETTE16 WINAPI GDISelectPalette16( HDC16 hdc, HPALETTE16 hpal, WORD wBkg)
TRACE("%04x %04x\n", hdc, hpal );
if (GetObjectType(hpal) != PALETTE_MAGIC)
if (GetObjectType(hpal) != OBJ_PAL)
{
WARN("invalid selected palette %04x\n",hpal);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment