mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
Don't free a NULL pointer.
svn path=/trunk/; revision=39931
This commit is contained in:
parent
b60241301b
commit
83b90e9547
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue