Commit 6b5aaa11 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

DeleteObject() can fail if the object is a DC, however we've already

called GDI_ReleaseObj() so don't call it again.
parent 66e31830
......@@ -877,10 +877,8 @@ BOOL WINAPI DeleteObject( HGDIOBJ obj )
/* Delete object */
if (header->funcs &&
header->funcs->pDeleteObject &&
header->funcs->pDeleteObject( obj, header ))
return TRUE;
if (header->funcs && header->funcs->pDeleteObject)
return header->funcs->pDeleteObject( obj, header );
GDI_ReleaseObj( obj );
return FALSE;
......
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