Commit 0e976ca5 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdi32: Abort printing if DeleteDC is called before EndDoc.

parent 083946db
......@@ -479,7 +479,12 @@ BOOL WINAPI DeleteDC( HDC hdc )
if (is_meta_dc( hdc )) return METADC_DeleteDC( hdc );
if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
if (dc_attr->print) delete_print_dc( dc_attr );
if (dc_attr->print)
{
if (dc_attr->emf)
AbortDoc( hdc );
delete_print_dc( dc_attr );
}
if (dc_attr->emf) EMFDC_DeleteDC( dc_attr );
return NtGdiDeleteObjectApp( hdc );
}
......
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