saveliyt@mail.ru:
[reactos.git] / reactos / subsys / system / winlogon / winlogon.c
index c4152c7..2cb92bd 100644 (file)
@@ -593,6 +593,8 @@ WinMain(HINSTANCE hInstance,
     DbgPrint("WL: Cannot switch to Winlogon desktop (0x%X)\n", GetLastError());
   }
 
+  InitServices();
+  
   /* Check for pending setup */
   if (GetSetupType () != 0)
   {
@@ -616,8 +618,6 @@ WinMain(HINSTANCE hInstance,
     return 2;
   }
 
-  InitServices();
-
 #if 0
    /* real winlogon uses "Winlogon" */
    RtlInitUnicodeString((PUNICODE_STRING)&ProcessName, L"Winlogon");