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/wi... ============================================================================== --- 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 */