From 80e31b74bc10526c925087f078d9175f04f0bc1a Mon Sep 17 00:00:00 2001 From: James Tabor Date: Fri, 29 Jan 2010 02:07:31 +0000 Subject: [PATCH] - Fix recursion when sweeping the DCE list. svn path=/trunk/; revision=45311 --- reactos/subsystems/win32/win32k/ntuser/windc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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*/ { -- 2.17.1