From 7ea5ac8d87e5395c1cd8d84c5fcc8ccea8eafb5c Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 22 Dec 2004 01:22:08 +0000 Subject: [PATCH] - Run UserInit program instead of running shell directly. svn path=/trunk/; revision=12282 --- reactos/subsys/system/winlogon/winlogon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/subsys/system/winlogon/winlogon.c b/reactos/subsys/system/winlogon/winlogon.c index 3c9ddaf260b..0dac840c069 100644 --- a/reactos/subsys/system/winlogon/winlogon.c +++ b/reactos/subsys/system/winlogon/winlogon.c @@ -1,4 +1,4 @@ -/* $Id: winlogon.c,v 1.37 2004/11/20 16:46:05 weiden Exp $ +/* $Id: winlogon.c,v 1.38 2004/12/22 01:22:08 navaraf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -364,7 +364,7 @@ static BOOL StartIntoGUI(VOID) static PWCHAR -GetShell (WCHAR *CommandLine) +GetUserInit (WCHAR *CommandLine) { HKEY WinLogonKey; BOOL GotCommandLine; @@ -377,7 +377,7 @@ GetShell (WCHAR *CommandLine) { Size = MAX_PATH; if (ERROR_SUCCESS == RegQueryValueEx(WinLogonKey, - L"Shell", + L"UserInit", NULL, &Type, (LPBYTE) Shell, @@ -399,8 +399,8 @@ GetShell (WCHAR *CommandLine) if (! GotCommandLine) { - GetWindowsDirectory(CommandLine, MAX_PATH - 15); - wcscat(CommandLine, L"\\explorer.exe"); + GetSystemDirectory(CommandLine, MAX_PATH - 15); + wcscat(CommandLine, L"\\userinit.exe"); } return CommandLine; @@ -479,7 +479,7 @@ DoLogonUser (PWCHAR Name, Result = CreateProcessAsUserW (hToken, NULL, - GetShell (CommandLine), + GetUserInit (CommandLine), NULL, NULL, FALSE,