Commit in reactos/subsys/system/winlogon on MAIN
winlogon.c+6-61.37 -> 1.38
- Run UserInit program instead of running shell directly.

reactos/subsys/system/winlogon
winlogon.c 1.37 -> 1.38
diff -u -r1.37 -r1.38
--- winlogon.c	20 Nov 2004 16:46:05 -0000	1.37
+++ winlogon.c	22 Dec 2004 01:22:08 -0000	1.38
@@ -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 PWCHAR
-GetShell (WCHAR *CommandLine)
+GetUserInit (WCHAR *CommandLine)
 {
    HKEY WinLogonKey;
    BOOL GotCommandLine;
@@ -377,7 +377,7 @@
      {
 	Size = MAX_PATH;
 	if (ERROR_SUCCESS == RegQueryValueEx(WinLogonKey,
-                                         L"Shell",
+                                         L"UserInit",
 	                                     NULL,
 	                                     &Type,
 	                                     (LPBYTE) Shell,
@@ -399,8 +399,8 @@
 
    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 @@
 
   Result = CreateProcessAsUserW (hToken,
 				 NULL,
-				 GetShell (CommandLine),
+				 GetUserInit (CommandLine),
 				 NULL,
 				 NULL,
 				 FALSE,
CVSspam 0.2.8