DeleteObject() can fail if the object is a DC, however we've already
called GDI_ReleaseObj() so don't call it again.
This commit is contained in:
parent
66e3183099
commit
6b5aaa1162
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue