Commit in reactos/subsys/system/winlogon on MAIN
winlogon.c+9-91.32 -> 1.33
register the winlogon application directly after startup

reactos/subsys/system/winlogon
winlogon.c 1.32 -> 1.33
diff -u -r1.32 -r1.33
--- winlogon.c	8 Jul 2004 14:41:38 -0000	1.32
+++ winlogon.c	11 Jul 2004 13:31:28 -0000	1.33
@@ -1,4 +1,4 @@
-/* $Id: winlogon.c,v 1.32 2004/07/08 14:41:38 ekohl Exp $
+/* $Id: winlogon.c,v 1.33 2004/07/11 13:31:28 weiden Exp $
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -546,6 +546,14 @@
   
   hAppInstance = hInstance;
   
+  if(!RegisterLogonProcess(GetCurrentProcessId(), TRUE))
+  {
+    DbgPrint("WL: Could not register logon process\n");
+    NtShutdownSystem(ShutdownNoReboot);
+    ExitProcess(0);
+    return 0;
+  }
+  
 #if START_LSASS
    if (StartProcess(L"StartLsass"))
      {
@@ -565,14 +573,6 @@
   }
   
   WLSession->LogonStatus = LOGON_INITIALIZING;
-
-  if(!RegisterLogonProcess(GetCurrentProcessId(), TRUE))
-  {
-    DbgPrint("WL: Could not register logon process\n");
-    NtShutdownSystem(ShutdownNoReboot);
-    ExitProcess(0);
-    return 0;
-  }
   
   if(!WlxCreateWindowStationAndDesktops(WLSession))
   {
CVSspam 0.2.8