commit | ea8795b99ca49664ce242dd9468d7eb70cce55b9 | [log] [tgz] |
---|---|---|
author | Andreas Mohr <a.mohr@mailto.de> | Fri Sep 29 01:03:57 2000 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Sep 29 01:03:57 2000 +0000 |
tree | 7b728558dda3409db5d691a00171fa4dbdd67e09 | |
parent | 8aa79fbe19f52045ec2d3348a2d07a156e1416fc [diff] [blame] |
GDISelectPalette16 checked GetObjectType() return value for PALETTE_MAGIC instead of OBJ_PAL.
diff --git a/objects/palette.c b/objects/palette.c index b5dd0c5..046fe31 100644 --- a/objects/palette.c +++ b/objects/palette.c
@@ -644,7 +644,7 @@ 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;