GetCurrentObject does not SetLastError() on a null object.
Modified: trunk/reactos/subsys/win32k/objects/dc.c

Modified: trunk/reactos/subsys/win32k/objects/dc.c
--- trunk/reactos/subsys/win32k/objects/dc.c	2006-01-24 06:01:58 UTC (rev 21009)
+++ trunk/reactos/subsys/win32k/objects/dc.c	2006-01-24 06:02:32 UTC (rev 21010)
@@ -1173,6 +1173,9 @@
   HGDIOBJ SelObject;
   DC *dc;
 
+  /* From Wine: GetCurrentObject does not SetLastError() on a null object */
+  if(!hDC) return NULL;
+
   if(!(dc = DC_LockDc(hDC)))
   {
     SetLastWin32Error(ERROR_INVALID_HANDLE);