mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
Add an assert in IntEngCreateXlate
svn path=/trunk/; revision=23708
This commit is contained in:
parent
397f1f88d2
commit
10782a0cfa
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ IntEngCreateXlate(USHORT DestPalType, USHORT SourcePalType,
|
||||||
ULONG DestRedMask = 0, DestGreenMask = 0, DestBlueMask = 0;
|
ULONG DestRedMask = 0, DestGreenMask = 0, DestBlueMask = 0;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
|
ASSERT(SourcePalType || PaletteSource);
|
||||||
|
ASSERT(DestPalType || PaletteDest);
|
||||||
|
|
||||||
XlateGDI = EngAllocMem(0, sizeof(XLATEGDI), TAG_XLATEOBJ);
|
XlateGDI = EngAllocMem(0, sizeof(XLATEGDI), TAG_XLATEOBJ);
|
||||||
if (XlateGDI == NULL)
|
if (XlateGDI == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue