DeleteObject does not SetLastError on a null object.
Modified: trunk/reactos/lib/gdi32/objects/dc.c

Modified: trunk/reactos/lib/gdi32/objects/dc.c
--- trunk/reactos/lib/gdi32/objects/dc.c	2006-01-24 05:39:17 UTC (rev 21008)
+++ trunk/reactos/lib/gdi32/objects/dc.c	2006-01-24 06:01:58 UTC (rev 21009)
@@ -193,6 +193,9 @@
 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);