Fix csrss shutdown/cleanup
authorGé van Geldorp <ge@gse.nl>
Mon, 21 Feb 2005 17:42:23 +0000 (17:42 +0000)
committerGé van Geldorp <ge@gse.nl>
Mon, 21 Feb 2005 17:42:23 +0000 (17:42 +0000)
svn path=/trunk/; revision=13705

reactos/subsys/win32k/ntuser/winsta.c

index d55f627..3f6f241 100644 (file)
@@ -813,11 +813,15 @@ IntGetWinStaObj(VOID)
                                                      KernelMode,
                                                      0,
                                                      &WinStaObj);
-   if(!NT_SUCCESS(Status))
-   {
-     SetLastNtError(Status);
-     return NULL;
-   }
+    if(!NT_SUCCESS(Status))
+    {
+      SetLastNtError(Status);
+      return NULL;
+    }
+  }
+  else
+  {
+    WinStaObj = NULL;
   }
   
   return WinStaObj;