mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user