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 ) ...@@ -877,10 +877,8 @@ BOOL WINAPI DeleteObject( HGDIOBJ obj )
/* Delete object */ /* Delete object */
if (header->funcs && if (header->funcs && header->funcs->pDeleteObject)
header->funcs->pDeleteObject && return header->funcs->pDeleteObject( obj, header );
header->funcs->pDeleteObject( obj, header ))
return TRUE;
GDI_ReleaseObj( obj ); GDI_ReleaseObj( obj );
return FALSE; 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