GDISelectPalette16 checked GetObjectType() return value for
PALETTE_MAGIC instead of OBJ_PAL.
This commit is contained in:
parent
8aa79fbe19
commit
ea8795b99c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue