From: James Tabor Date: Fri, 29 Jan 2010 02:07:31 +0000 (+0000) Subject: - Fix recursion when sweeping the DCE list. X-Git-Tag: backups/jcatena-branch@60647~14^2~25 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=80e31b74bc10526c925087f078d9175f04f0bc1a;ds=sidebyside - Fix recursion when sweeping the DCE list. svn path=/trunk/; revision=45311 --- diff --git a/reactos/subsystems/win32/win32k/ntuser/windc.c b/reactos/subsystems/win32/win32k/ntuser/windc.c index 8f9966dfcdb..38ac3b486d1 100644 --- a/reactos/subsystems/win32/win32k/ntuser/windc.c +++ b/reactos/subsystems/win32/win32k/ntuser/windc.c @@ -683,7 +683,8 @@ DceFreeWindowDCE(PWINDOW_OBJECT Window) { if (!pDCE) break; if (IsListEmpty(&pDCE->List)) break; - if (pDCE->hwndCurrent == Window->hSelf) + if ( pDCE->hwndCurrent == Window->hSelf && + !(pDCE->DCXFlags & DCX_DCEEMPTY) ) { if (!(pDCE->DCXFlags & DCX_CACHE)) /* owned or Class DCE*/ {