From 6b5aaa1162eaa19fdede8dc25d34a2cf4184a1a8 Mon Sep 17 00:00:00 2001 From: Huw D M Davies Date: Thu, 15 Aug 2002 23:19:40 +0000 Subject: [PATCH] DeleteObject() can fail if the object is a DC, however we've already called GDI_ReleaseObj() so don't call it again. --- objects/gdiobj.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/objects/gdiobj.c b/objects/gdiobj.c index 795fd5a137a..79b6a27c975 100644 --- a/objects/gdiobj.c +++ b/objects/gdiobj.c @@ -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;