[CMAKE]
[reactos.git] / subsystems / win32 / win32k / eng / engwindow.c
index 11eae9e..19d76be 100644 (file)
@@ -117,7 +117,7 @@ IntEngWndUpdateClipObj(
     {
       DPRINT1("Warning: Couldn't lock visible region of window DC\n");
     }
-    REGION_FreeRgnByHandle(hVisRgn);
+    GreDeleteObject(hVisRgn);
   }
   else
   {
@@ -226,7 +226,7 @@ EngCreateWnd(
     }
 
   /* Create WNDOBJ */
-  WndObjInt = EngAllocMem(0, sizeof (WNDGDI), TAG_WNDOBJ);
+  WndObjInt = EngAllocMem(0, sizeof (WNDGDI), GDITAG_WNDOBJ);
   if (WndObjInt == NULL)
     {
       DPRINT1("Failed to allocate memory for a WND structure!\n");