[ros-diffs] [cfinck] 41595: Hack: Add the APPDATA variable to the environment created by userenv. This code is not entirely correct due to the hardcoded string, but otherwise fits well into our existing CreateEnvironmentBlock implementation and served us well in the past.

cfinck at svn.reactos.org cfinck at svn.reactos.org
Tue Jun 23 18:33:27 CEST 2009


Author: cfinck
Date: Tue Jun 23 20:33:26 2009
New Revision: 41595

URL: http://svn.reactos.org/svn/reactos?rev=41595&view=rev
Log:
Hack: Add the APPDATA variable to the environment created by userenv.
This code is not entirely correct due to the hardcoded string, but otherwise fits well into our existing CreateEnvironmentBlock implementation and served us well in the past.

Modified:
    branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c

Modified: branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c?rev=41595&r1=41594&r2=41595&view=diff
==============================================================================
--- branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c [iso-8859-1] (original)
+++ branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c [iso-8859-1] Tue Jun 23 20:33:26 2009
@@ -379,6 +379,9 @@
 				 L"USERPROFILE",
 				 Buffer,
 				 FALSE);
+
+      wcscat(Buffer, L"\\Application Data");
+      SetUserEnvironmentVariable(lpEnvironment, L"APPDATA", Buffer, FALSE);
     }
 
   /* FIXME: Set 'USERDOMAIN' variable */



More information about the Ros-diffs mailing list