branch update for HEAD-2003050101
[reactos.git] / subsys / win32k / ntuser / windc.c
index 2cc09e8..7f34d4f 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <ddk/ntddk.h>
 #include <win32k/win32k.h>
+#include <win32k/region.h>
 #include <win32k/userobj.h>
 #include <include/class.h>
 #include <include/error.h>
@@ -528,4 +529,31 @@ NtUserGetDCEx(HWND hWnd, HANDLE hRegion, ULONG Flags)
   return(Dce->hDC);
 }
 
+BOOL
+DCE_InternalDelete(PDCE Dce)
+{
+  PDCE PrevInList;
+
+  if (Dce == FirstDce)
+    {
+      FirstDce = Dce->next;
+      PrevInList = Dce;
+    }
+  else
+    {
+      for (PrevInList = FirstDce; NULL != PrevInList; PrevInList = PrevInList->next)
+       {
+         if (Dce == PrevInList->next)
+           {
+             PrevInList->next = Dce->next;
+             break;
+           }
+       }
+      assert(NULL != PrevInList);
+    }
+
+  return NULL != PrevInList;
+}
+  
+
 /* EOF */