Hack: Add the APPDATA variable to the environment created by userenv as it was done...
authorColin Finck <colin@reactos.org>
Sat, 28 Nov 2009 00:29:52 +0000 (00:29 +0000)
committerColin Finck <colin@reactos.org>
Sat, 28 Nov 2009 00:29:52 +0000 (00:29 +0000)
svn path=/branches/ros-branch-0_3_11/; revision=44300

reactos/dll/win32/userenv/environment.c

index aa2f843..0274cc1 100644 (file)
@@ -379,6 +379,9 @@ CreateEnvironmentBlock (LPVOID *lpEnvironment,
                                 L"USERPROFILE",
                                 Buffer,
                                 FALSE);
+
+      wcscat(Buffer, L"\\Application Data");
+      SetUserEnvironmentVariable(lpEnvironment, L"APPDATA", Buffer, FALSE);
     }
 
   /* FIXME: Set 'USERDOMAIN' variable */