Add an assert in IntEngCreateXlate

svn path=/trunk/; revision=23708
This commit is contained in:
Hervé Poussineau 2006-08-25 15:49:31 +00:00
parent 397f1f88d2
commit 10782a0cfa

View file

@ -158,6 +158,9 @@ IntEngCreateXlate(USHORT DestPalType, USHORT SourcePalType,
ULONG DestRedMask = 0, DestGreenMask = 0, DestBlueMask = 0;
ULONG i;
ASSERT(SourcePalType || PaletteSource);
ASSERT(DestPalType || PaletteDest);
XlateGDI = EngAllocMem(0, sizeof(XLATEGDI), TAG_XLATEOBJ);
if (XlateGDI == NULL)
{