Do not hold the GDI lock when the ABORTDOC procedure is called.

oldstable
Marcus Meissner 2001-08-18 16:06:47 +00:00 committed by Alexandre Julliard
parent 8fef006fd2
commit 83e0bac511
1 changed files with 5 additions and 1 deletions

View File

@ -230,14 +230,18 @@ BOOL16 WINAPI QueryAbort16(HDC16 hdc, INT16 reserved)
{
BOOL ret = TRUE;
DC *dc = DC_GetDCPtr( hdc );
ABORTPROC abproc;
if(!dc) {
ERR("Invalid hdc %04x\n", hdc);
return FALSE;
}
if (dc->pAbortProc) ret = dc->pAbortProc(hdc, 0);
abproc = dc->pAbortProc;
GDI_ReleaseObj( hdc );
if (abproc)
ret = abproc(hdc, 0);
return ret;
}