Author: jimtabor
Date: Thu Dec 20 02:48:07 2007
New Revision: 31345
URL:
http://svn.reactos.org/svn/reactos?rev=31345&view=rev
Log:
Reorder code since it is a POWNED DC.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/windc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/windc.c Thu Dec 20 02:48:07 2007
@@ -630,15 +630,11 @@
if (Window->Wnd->Class->Style & CS_CLASSDC ||
Window->Wnd->Style & CS_CLASSDC) /* Test Class first */
{
- PWINDOW_OBJECT CurrentWindow;
if (pDCE->DCXFlags & (DCX_INTERSECTRGN | DCX_EXCLUDERGN)) /* Class
DCE*/
DceDeleteClipRgn(pDCE);
- CurrentWindow = UserGetWindowObject(pDCE->hwndCurrent);
- if (CurrentWindow)
- { // Update and reset Vis Rgn and clear the dirty bit.
- // Should release VisRgn than reset it to default.
- DceUpdateVisRgn(pDCE, CurrentWindow, pDCE->DCXFlags);
- }
+ // Update and reset Vis Rgn and clear the dirty bit.
+ // Should release VisRgn than reset it to default.
+ DceUpdateVisRgn(pDCE, Window, pDCE->DCXFlags);
pDCE->DCXFlags = DCX_DCEEMPTY;
pDCE->hwndCurrent = 0;
}