Don't free a NULL pointer.

svn path=/trunk/; revision=39931
This commit is contained in:
Timo Kreuzer 2009-03-10 04:34:33 +00:00
parent b60241301b
commit 83b90e9547

View file

@ -631,7 +631,8 @@ IntSetPaletteEntries(HPALETTE hpal,
}
memcpy(palGDI->IndexedColors + Start, pe, Entries * sizeof(PALETTEENTRY));
PALETTE_ValidateFlags(palGDI->IndexedColors, palGDI->NumColors);
ExFreePool(palGDI->logicalToSystem);
if (palGDI->logicalToSystem)
ExFreePool(palGDI->logicalToSystem);
palGDI->logicalToSystem = NULL;
PALETTE_UnlockPalette(palGDI);