https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3ca67d97e2864c72237e6…
commit 3ca67d97e2864c72237e6ffb618802f17a070686
Author: jimtabor <james.tabor(a)reactos.org>
AuthorDate: Tue Sep 3 15:02:46 2019 -0500
Commit: jimtabor <james.tabor(a)reactos.org>
CommitDate: Tue Sep 3 15:02:46 2019 -0500
[Win32SS] Fix safe pointer and define type.
---
win32ss/gdi/ntgdi/palette.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/win32ss/gdi/ntgdi/palette.c b/win32ss/gdi/ntgdi/palette.c
index 18234566ee9..265b691164c 100644
--- a/win32ss/gdi/ntgdi/palette.c
+++ b/win32ss/gdi/ntgdi/palette.c
@@ -12,7 +12,7 @@
#define NDEBUG
#include <debug.h>
-#define PAL_SETOWNER 0x8000
+#define PAL_SETPOWNER 0x8000
#define MAX_PALCOLORS 65536
static UINT SystemPaletteUse = SYSPAL_NOSTATIC; /* The program need save the pallete and
restore it */
@@ -1304,7 +1304,7 @@ NtGdiEngCreatePalette(
}
_SEH2_END;
- hPal = EngCreatePalette( iMode/*|PAL_SETOWNER*/, cColors, pulColors, flRed, flGreen,
flBlue );
+ hPal = EngCreatePalette( iMode/*|PAL_SETPOWNER*/, cColors, pulcSafe, flRed, flGreen,
flBlue );
if ( cColors > WINDDI_MAXSETPALETTECOLORS ) ExFreePoolWithTag( pulcSafe,
GDITAG_UMPD );