Commit in reactos/subsys/system/winlogon on MAIN
winlogon.c+18-11.35 -> 1.36
Add UpdatePerUserSystemParameters stub and call it from winlogon.

reactos/subsys/system/winlogon
winlogon.c 1.35 -> 1.36
diff -u -r1.35 -r1.36
--- winlogon.c	11 Oct 2004 21:08:05 -0000	1.35
+++ winlogon.c	20 Nov 2004 15:55:45 -0000	1.36
@@ -1,4 +1,4 @@
-/* $Id: winlogon.c,v 1.35 2004/10/11 21:08:05 weiden Exp $
+/* $Id: winlogon.c,v 1.36 2004/11/20 15:55:45 ekohl Exp $
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -461,6 +461,12 @@
       return FALSE;
     }
 
+  if (ImpersonateLoggedOnUser(hToken))
+    {
+      UpdatePerUserSystemParameters(0, TRUE);
+      RevertToSelf();
+    }
+
   GetWindowsDirectoryW (CurrentDirectory, MAX_PATH);
 
   StartupInfo.cb = sizeof(StartupInfo);
@@ -485,6 +491,11 @@
   if (!Result)
     {
       DbgPrint ("WL: Failed to execute user shell %s\n", CommandLine);
+      if (ImpersonateLoggedOnUser(hToken))
+        {
+          UpdatePerUserSystemParameters(0, FALSE);
+          RevertToSelf();
+        }
       UnloadUserProfile (hToken,
 			 ProfileInfo.hProfile);
       CloseHandle (hToken);
@@ -510,6 +521,12 @@
   CloseHandle (ProcessInformation.hProcess);
   CloseHandle (ProcessInformation.hThread);
 
+  if (ImpersonateLoggedOnUser(hToken))
+    {
+      UpdatePerUserSystemParameters(0, FALSE);
+      RevertToSelf();
+    }
+
   /* Unload user profile */
   UnloadUserProfile (hToken,
 		     ProfileInfo.hProfile);
CVSspam 0.2.8