Fix csrss shutdown/cleanup
Modified: trunk/reactos/subsys/win32k/ntuser/winsta.c
--- trunk/reactos/subsys/win32k/ntuser/winsta.c 2005-02-21 12:38:50 UTC (rev 13704) +++ trunk/reactos/subsys/win32k/ntuser/winsta.c 2005-02-21 17:42:23 UTC (rev 13705) @@ -813,12 +813,16 @@
KernelMode, 0, &WinStaObj);
- if(!NT_SUCCESS(Status))
- {
- SetLastNtError(Status);
- return NULL;
- }
+ if(!NT_SUCCESS(Status))
+ {
+ SetLastNtError(Status);
+ return NULL;
+ }
}
+ else + { + WinStaObj = NULL; + }
return WinStaObj; }