Commit fcb6ae29 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Don't call abort proc in NtGdiStartDoc.

It's called by StartDocW. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fd413f69
...@@ -68,22 +68,19 @@ DWORD WINAPI NtGdiInitSpool(void) ...@@ -68,22 +68,19 @@ DWORD WINAPI NtGdiInitSpool(void)
*/ */
INT WINAPI NtGdiStartDoc( HDC hdc, const DOCINFOW *doc, BOOL *banding, INT job ) INT WINAPI NtGdiStartDoc( HDC hdc, const DOCINFOW *doc, BOOL *banding, INT job )
{ {
INT ret; INT ret = SP_ERROR;
DC *dc = get_dc_ptr( hdc ); DC *dc = get_dc_ptr( hdc );
TRACE("DocName %s, Output %s, Datatype %s, fwType %#x\n", TRACE("DocName %s, Output %s, Datatype %s, fwType %#x\n",
debugstr_w(doc->lpszDocName), debugstr_w(doc->lpszOutput), debugstr_w(doc->lpszDocName), debugstr_w(doc->lpszOutput),
debugstr_w(doc->lpszDatatype), doc->fwType); debugstr_w(doc->lpszDatatype), doc->fwType);
if(!dc) return SP_ERROR; if (dc)
if (dc->attr->abort_proc && !dc->attr->abort_proc( hdc, 0 )) ret = 0;
else
{ {
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pStartDoc ); PHYSDEV physdev = GET_DC_PHYSDEV( dc, pStartDoc );
ret = physdev->funcs->pStartDoc( physdev, doc ); ret = physdev->funcs->pStartDoc( physdev, doc );
}
release_dc_ptr( dc ); release_dc_ptr( dc );
}
return ret; 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