projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbe31af
)
- Please dont break functionality due to a compiler problem, just fix it.
author
James Tabor
<james.tabor@reactos.org>
Mon, 8 Dec 2008 07:57:18 +0000
(07:57 +0000)
committer
James 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
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/gdi32/objects/palette.c
b/reactos/dll/win32/gdi32/objects/palette.c
index
f7e83ea
..
3f44657
100644
(file)
--- a/
reactos/dll/win32/gdi32/objects/palette.c
+++ b/
reactos/dll/win32/gdi32/objects/palette.c
@@
-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);