Free cache DCEs if the DC gets deleted.
This commit is contained in:
parent
185ba234ec
commit
e566195eaf
|
@ -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 */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue