gdi32: Call AbortProc from StartDoc instead of EndPage.
This commit is contained in:
parent
e20ef50139
commit
4f2a3c2c28
|
@ -77,6 +77,12 @@ INT WINAPI StartDocW(HDC hdc, const DOCINFOW* doc)
|
|||
|
||||
if(!dc) return SP_ERROR;
|
||||
|
||||
if (dc->pAbortProc && !dc->pAbortProc( hdc, 0 ))
|
||||
{
|
||||
release_dc_ptr( dc );
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (dc->funcs->pStartDoc) ret = dc->funcs->pStartDoc( dc->physDev, doc );
|
||||
release_dc_ptr( dc );
|
||||
return ret;
|
||||
|
@ -173,11 +179,6 @@ INT WINAPI EndPage(HDC hdc)
|
|||
if(!dc) return SP_ERROR;
|
||||
|
||||
if (dc->funcs->pEndPage) ret = dc->funcs->pEndPage( dc->physDev );
|
||||
if (dc->pAbortProc && !dc->pAbortProc( hdc, 0 ))
|
||||
{
|
||||
EndDoc( hdc );
|
||||
ret = 0;
|
||||
}
|
||||
release_dc_ptr( dc );
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue