mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
don't free the memory for the palette entries in IntSetPalette. Fixes bug 3072
See issue #3072 for more details. svn path=/trunk/; revision=32461
This commit is contained in:
parent
e0edb0dac7
commit
2b17735b1a
1 changed files with 3 additions and 2 deletions
|
@ -121,7 +121,6 @@ IntSetPalette(
|
|||
pClut->FirstEntry = iStart;
|
||||
pClut->NumEntries = cColors;
|
||||
memcpy(&pClut->LookupTable[0].RgbLong, ppalent, sizeof(ULONG) * cColors);
|
||||
EngFreeMem(ppalent);
|
||||
|
||||
if (((PPDEV)dhpdev)->PaletteShift)
|
||||
{
|
||||
|
@ -193,5 +192,7 @@ DrvSetPalette(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
return IntSetPalette(dhpdev, PaletteEntries, iStart, cColors);
|
||||
BOOL bRet = IntSetPalette(dhpdev, PaletteEntries, iStart, cColors);
|
||||
EngFreeMem(PaletteEntries);
|
||||
return bRet;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue