src/w32xfns.c (select_palette): Check success of RealizePalette against GDI_ERROR, not zero.

This commit is contained in:
Juanma Barranquero 2011-03-08 02:52:20 +01:00
parent eb8694ee59
commit 1c2cc4efce
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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)