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*/ {