SM: init system reading the registry
[reactos.git] / reactos / subsys / smss / smss.c
index a6a983f..b03197c 100644 (file)
@@ -56,6 +56,7 @@ NtProcessStartup(PPEB Peb)
   }
   /* Initialize the system */
   Status = InitSessionManager();
+#if 0
   if (!NT_SUCCESS(Status))
     {
       int i;
@@ -90,6 +91,8 @@ ByeBye:
                   0,0,0,0,0);
 
 //   NtTerminateProcess(NtCurrentProcess(), 0);
+#endif
+       NtTerminateThread(NtCurrentThread(), Status);
 }
 
 /* EOF */