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;
|
DWORD data = dc->dwHookData;
|
||||||
GDI_ReleaseObj( hdc );
|
GDI_ReleaseObj( hdc );
|
||||||
if (!proc( hdc, DCHC_DELETEDC, data, 0 )) return FALSE;
|
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");
|
WARN("Application trying to delete a busy DC\n");
|
||||||
retv = FALSE;
|
retv = FALSE;
|
||||||
}
|
}
|
||||||
|
else DCE_FreeDCE( dce );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue