From f85cea6c2c58cf49cb4fd18bedec1b19e8a599f9 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 11 Jul 2004 13:31:28 +0000 Subject: [PATCH] register the winlogon application directly after startup svn path=/trunk/; revision=10078 --- reactos/subsys/system/winlogon/winlogon.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/reactos/subsys/system/winlogon/winlogon.c b/reactos/subsys/system/winlogon/winlogon.c index 9a3b4f4f891..5ad3267aa3c 100644 --- a/reactos/subsys/system/winlogon/winlogon.c +++ b/reactos/subsys/system/winlogon/winlogon.c @@ -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 @@ WinMain(HINSTANCE hInstance, 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 @@ WinMain(HINSTANCE hInstance, } 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)) {