mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
fix redzone overwrite when launching solitaire
ntoskrnl\mm\/rpoolmgr.h(707): High-side redzone overwrite detected for paged pool address 0x8d882000 Tag th(68742020), Size 4148, UserSize 4096, LoZone 87878787, HiZone 00000000 svn path=/trunk/; revision=31121
This commit is contained in:
parent
13dc179a11
commit
f02a249d62
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,7 @@ IntSetPalette(
|
|||
pClut->FirstEntry = iStart;
|
||||
pClut->NumEntries = cColors;
|
||||
memcpy(&pClut->LookupTable[0].RgbLong, ppalent, sizeof(ULONG) * cColors);
|
||||
EngFreeMem(ppalent);
|
||||
|
||||
if (((PPDEV)dhpdev)->PaletteShift)
|
||||
{
|
||||
|
@ -176,6 +177,9 @@ DrvSetPalette(
|
|||
{
|
||||
PPALETTEENTRY PaletteEntries;
|
||||
|
||||
if (cColors == 0)
|
||||
return FALSE;
|
||||
|
||||
PaletteEntries = EngAllocMem(0, cColors * sizeof(ULONG), ALLOC_TAG);
|
||||
if (PaletteEntries == NULL)
|
||||
{
|
||||
|
@ -185,6 +189,7 @@ DrvSetPalette(
|
|||
if (PALOBJ_cGetColors(ppalo, iStart, cColors, (PULONG)PaletteEntries) !=
|
||||
cColors)
|
||||
{
|
||||
EngFreeMem(PaletteEntries);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue