Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-2267

Environment variable %TEMP% is diffferent between english and translated versions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Win32SS
    • 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.

      Attachments

        Activity

          People

            ThePhysicist Timo Kreuzer
            scalpel78 Scalpel78
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: