src/w32xfns.c (select_palette): Check success of RealizePalette against GDI_ERROR, not zero.
This commit is contained in:
parent
eb8694ee59
commit
1c2cc4efce
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-08 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* w32xfns.c (select_palette): Check success of RealizePalette against
|
||||
GDI_ERROR, not zero.
|
||||
|
||||
2011-03-07 Ben Key <bkey76@gmail.com>
|
||||
|
||||
* w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
|
||||
|
|
|
@ -97,7 +97,7 @@ select_palette (FRAME_PTR f, HDC hdc)
|
|||
else
|
||||
f->output_data.w32->old_palette = NULL;
|
||||
|
||||
if (RealizePalette (hdc))
|
||||
if (RealizePalette (hdc) != GDI_ERROR)
|
||||
{
|
||||
Lisp_Object frame, framelist;
|
||||
FOR_EACH_FRAME (framelist, frame)
|
||||
|
|
Loading…
Add table
Reference in a new issue