take care of NtGdiDdDeleteDirectDrawObject Attempted to lock object 0x8d1f9ad8 that is deleted! problem.
Modified: trunk/reactos/subsys/win32k/ntddraw/ddraw.c

Modified: trunk/reactos/subsys/win32k/ntddraw/ddraw.c
--- trunk/reactos/subsys/win32k/ntddraw/ddraw.c	2005-12-09 20:58:32 UTC (rev 20018)
+++ trunk/reactos/subsys/win32k/ntddraw/ddraw.c	2005-12-09 21:25:39 UTC (rev 20019)
@@ -210,7 +210,7 @@
 	
 	if (pDirectDraw == NULL) 
 	{
-        DPRINT1("NtGdiDdGetDriverInfo DDHAL_DRIVER_NOTHANDLED\n");
+        DPRINT1("Can not lock DirectDraw handle \n");
 		return DDHAL_DRIVER_NOTHANDLED;
     }
 
@@ -799,7 +799,11 @@
 )
 {
     DPRINT1("NtGdiDdDeleteSurfaceObject\n");
-	return GDIOBJ_FreeObj(hSurface, GDI_OBJECT_TYPE_DD_SURFACE);
+    /* FIXME add right GDI_OBJECT_TYPE_ for everthing for now 
+       we are using same type */
+	/* return GDIOBJ_FreeObj(hSurface, GDI_OBJECT_TYPE_DD_SURFACE); */
+	return GDIOBJ_FreeObj(hSurface, GDI_OBJECT_TYPE_DIRECTDRAW);
+	
 }