- Please dont break functionality due to a compiler problem, just fix it.

svn path=/trunk/; revision=37928
This commit is contained in:
James Tabor 2008-12-08 07:57:18 +00:00
parent cbe31af1b2
commit 0e162bfb0b

View 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);