Free cache DCEs if the DC gets deleted.

This commit is contained in:
Alexandre Julliard 2001-10-02 21:40:11 +00:00
parent 185ba234ec
commit e566195eaf
2 changed files with 2 additions and 1 deletions

View File

@ -745,7 +745,7 @@ BOOL WINAPI DeleteDC( HDC hdc )
DWORD data = dc->dwHookData;
GDI_ReleaseObj( hdc );
if (!proc( hdc, DCHC_DELETEDC, data, 0 )) return FALSE;
if (!(dc = DC_GetDCPtr( hdc ))) return FALSE;
if (!(dc = DC_GetDCPtr( hdc ))) return TRUE; /* deleted by the hook */
}
}

View File

@ -623,6 +623,7 @@ BOOL16 WINAPI DCHook16( HDC16 hDC, WORD code, DWORD data, LPARAM lParam )
WARN("Application trying to delete a busy DC\n");
retv = FALSE;
}
else DCE_FreeDCE( dce );
break;
default: