--- ../wine-old1/objects/gdiobj.c	Wed Jun  5 01:17:54 2002
+++ objects/gdiobj.c	Thu Jun 20 21:40:56 2002
@@ -777,6 +776,9 @@
 {
     GDIOBJHDR *ptr = NULL;

+	if (!handle)
+		return NULL; /* Handle NULL (even if M$ wouldn't). Am I right? */
+
     _EnterSysLevel( &GDI_level );
 
     if (handle & 2)  /* GDI heap handle */

