Comment out an ASSERT that gets trigged frequently.
[reactos.git] / reactos / subsystems / win32 / win32k / ntuser / windc.c
index 0b53865..ed49ac6 100644 (file)
@@ -9,7 +9,7 @@
 
 /* INCLUDES ******************************************************************/
 
-#include <w32k.h>
+#include <win32k.h>
 
 #define NDEBUG
 #include <debug.h>
@@ -643,6 +643,11 @@ DceFreeDCE(PDCE pdce, BOOLEAN Force)
          Hit = TRUE;
      }
   }
+  else
+  {
+     if (!GreGetObjectOwner(pdce->hDC, GDIObjType_DC_TYPE))
+        DC_SetOwnership( pdce->hDC, PsGetCurrentProcess());
+  }
 
   if (!Hit) IntGdiDeleteDC(pdce->hDC, TRUE);
 
@@ -731,7 +736,7 @@ DceFreeWindowDCE(PWINDOW_OBJECT Window)
            else
            {
               DPRINT1("Not POWNED or CLASSDC hwndCurrent -> %x \n", pDCE->hwndCurrent);
-              ASSERT(FALSE);
+              //ASSERT(FALSE);
            }
         }
         else