GDISelectPalette16 checked GetObjectType() return value for

PALETTE_MAGIC instead of OBJ_PAL.
This commit is contained in:
Andreas Mohr 2000-09-29 01:03:57 +00:00 committed by Alexandre Julliard
parent 8aa79fbe19
commit ea8795b99c
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ HPALETTE16 WINAPI GDISelectPalette16( HDC16 hdc, HPALETTE16 hpal, WORD wBkg)
TRACE("%04x %04x\n", hdc, hpal ); TRACE("%04x %04x\n", hdc, hpal );
if (GetObjectType(hpal) != PALETTE_MAGIC) if (GetObjectType(hpal) != OBJ_PAL)
{ {
WARN("invalid selected palette %04x\n",hpal); WARN("invalid selected palette %04x\n",hpal);
return 0; return 0;