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 */
|
/* 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user