Author: hpoussin
Date: Fri Aug 25 19:49:31 2006
New Revision: 23708
URL:
http://svn.reactos.org/svn/reactos?rev=23708&view=rev
Log:
Add an assert in IntEngCreateXlate
Modified:
trunk/reactos/subsystems/win32/win32k/eng/xlate.c
Modified: trunk/reactos/subsystems/win32/win32k/eng/xlate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/en…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/eng/xlate.c (original)
+++ trunk/reactos/subsystems/win32/win32k/eng/xlate.c Fri Aug 25 19:49:31 2006
@@ -158,6 +158,9 @@
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)
{