From 035f762b7391de9b9d4e0b295badde927d1a7eb7 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 24 Jan 2006 06:01:58 +0000 Subject: [PATCH] DeleteObject does not SetLastError on a null object. svn path=/trunk/; revision=21009 --- reactos/lib/gdi32/objects/dc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/lib/gdi32/objects/dc.c b/reactos/lib/gdi32/objects/dc.c index 707cd1f1e16..714f0fdd463 100644 --- a/reactos/lib/gdi32/objects/dc.c +++ b/reactos/lib/gdi32/objects/dc.c @@ -193,6 +193,9 @@ BOOL STDCALL DeleteObject(HGDIOBJ hObject) { + /* From Wine: DeleteObject does not SetLastError() on a null object */ + if(!hObject) return FALSE; + if (0 != ((DWORD) hObject & GDI_HANDLE_STOCK_MASK)) { DPRINT1("Trying to delete system object 0x%x\n", hObject);