- Please dont break functionality due to a compiler problem, just fix it.
authorJames Tabor <james.tabor@reactos.org>
Mon, 8 Dec 2008 07:57:18 +0000 (07:57 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 8 Dec 2008 07:57:18 +0000 (07:57 +0000)
svn path=/trunk/; revision=37928

reactos/dll/win32/gdi32/objects/palette.c

index f7e83ea..3f44657 100644 (file)
@@ -87,6 +87,8 @@ GetSystemPaletteEntries(HDC hDC,
                         LPPALETTEENTRY ppe)
 {
      PALETTEENTRY ippe[256];
+     // Make this work!
+     if ((INT)cEntries < 0 ) return 0;
 
      if ( GetDeviceCaps(hDC, RASTERCAPS) & RC_PALETTE )
         return NtGdiDoPalette(hDC, iStartIndex, cEntries, ppe, GdiPalGetSystemEntries, FALSE);