EngCreateClip must allocate CLIPGDI, not only CLIPOBJ
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 28 May 2008 17:22:49 +0000 (17:22 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 28 May 2008 17:22:49 +0000 (17:22 +0000)
svn path=/trunk/; revision=33739

reactos/subsystems/win32/win32k/eng/clip.c

index c12a2e9..85f49f9 100644 (file)
@@ -266,7 +266,7 @@ IntEngCreateClipRegion(ULONG count, PRECTL pRect, PRECTL rcBounds)
 CLIPOBJ * STDCALL
 EngCreateClip(VOID)
 {
-  CLIPGDI *Clip = EngAllocMem(FL_ZERO_MEMORY, sizeof(CLIPOBJ), TAG_CLIPOBJ);
+  CLIPGDI *Clip = EngAllocMem(FL_ZERO_MEMORY, sizeof(CLIPGDI), TAG_CLIPOBJ);
   if(Clip != NULL)
   {
     return GDIToObj(Clip, CLIP);