win32u: Don't call abort proc in NtGdiStartDoc.
It's called by StartDocW. Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fd413f69c9
commit
fcb6ae29a6
|
@ -68,22 +68,19 @@ DWORD WINAPI NtGdiInitSpool(void)
|
|||
*/
|
||||
INT WINAPI NtGdiStartDoc( HDC hdc, const DOCINFOW *doc, BOOL *banding, INT job )
|
||||
{
|
||||
INT ret;
|
||||
INT ret = SP_ERROR;
|
||||
DC *dc = get_dc_ptr( hdc );
|
||||
|
||||
TRACE("DocName %s, Output %s, Datatype %s, fwType %#x\n",
|
||||
debugstr_w(doc->lpszDocName), debugstr_w(doc->lpszOutput),
|
||||
debugstr_w(doc->lpszDatatype), doc->fwType);
|
||||
|
||||
if(!dc) return SP_ERROR;
|
||||
|
||||
if (dc->attr->abort_proc && !dc->attr->abort_proc( hdc, 0 )) ret = 0;
|
||||
else
|
||||
if (dc)
|
||||
{
|
||||
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pStartDoc );
|
||||
ret = physdev->funcs->pStartDoc( physdev, doc );
|
||||
release_dc_ptr( dc );
|
||||
}
|
||||
release_dc_ptr( dc );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue