- Fix recursion when sweeping the DCE list.

svn path=/trunk/; revision=45311
This commit is contained in:
James Tabor 2010-01-29 02:07:31 +00:00
parent 3d6e5848c1
commit 80e31b74bc

View file

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