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:
Timo Kreuzer 2008-02-24 03:12:38 +00:00
parent e0edb0dac7
commit 2b17735b1a

View file

@ -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;
}