Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
Operating System: ReactOS
Platform: x86 Hardware
Description
When installing with bootcd and choosing english language the environment variables %TEMP% and %TMP% are set to "C:\Documents and Settings\Administrator.Reactos\Local Settings\Temp".
But when installing using a language where the Local Settings folder has been renamed ROS is unable to find the Temp directory, and therefore sets it to C:\Temp.
In dll\win32\userenv\environment.c DstValue.Buffer uses the english "Local Settings" term, and GetShortPathNameW is then unable to find the localized folder. On a Norwegian installation (where the "Local Settings" folder is called "Lokale innstillinger" the GetShortPathNameW call in environment.c fails with a ERROR_FILE_NOT_FOUND because it's been told to look for the "Local Settings" folder.
The problem seems to occur approximately on the RtlExpandEnvironmentStrings_U() call, and the fact that it doesn't translate the path correctly.