Author: jimtabor
Date: Mon Dec 8 01:57:18 2008
New Revision: 37928
URL:
http://svn.reactos.org/svn/reactos?rev=37928&view=rev
Log:
- Please dont break functionality due to a compiler problem, just fix it.
Modified:
trunk/reactos/dll/win32/gdi32/objects/palette.c
Modified: trunk/reactos/dll/win32/gdi32/objects/palette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/pa…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/palette.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/palette.c [iso-8859-1] Mon Dec 8 01:57:18 2008
@@ -87,6 +87,8 @@
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);