Commit 83e0bac5 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 8fef006f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment