From 7b80e822074aed91e207876a60c2c45452fe23cc Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 19 Dec 2007 23:48:07 +0000 Subject: [PATCH] Reorder code since it is a POWNED DC. svn path=/trunk/; revision=31345 --- reactos/subsystems/win32/win32k/ntuser/windc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/windc.c b/reactos/subsystems/win32/win32k/ntuser/windc.c index 960028d399e..cab94d5de0b 100644 --- a/reactos/subsystems/win32/win32k/ntuser/windc.c +++ b/reactos/subsystems/win32/win32k/ntuser/windc.c @@ -630,15 +630,11 @@ DceFreeWindowDCE(PWINDOW_OBJECT Window) 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; }