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

TEMP variable can be WRONG.



    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.4
    • Component/s: None
    • Labels:


      A message in the log of ReactOS caught my attention:

      (dll/win32/userenv/environment.c:87) GetShortPathNameW() failed for C:\Documents and Settings\Administrator\Local Settings\Temp (Error 3)

      This message appears several time and it shows a quite critical error that seems to make lot of things fail.
      I have installed ReactOS and I selected ITALIAN language.
      With ITALIAN, the TEMP directory should point to:

      C:\Documents and Settings\Administrator\Impostazioni Locali\Temp

      and NOT to:

      C:\Documents and Settings\Administrator\Local Settings\Temp

      (See ReactOS_0.png)

      If you open the registry and look into the Environment, you will see that actually the TEMP and TMP are pointing to a directory that does not exist.

      (See ReactOS_1.png)

      I gave a look into dll/win32/userenv/setup.c, but the error is not here.
      Here there is this line:

      {L"Temp", L"Local Settings\\Temp", IDS_TEMP, FALSE, FALSE, FALSE}


      but as you can see, both 'bShellFolder' and 'bUserShellFolder' members of the structure are FALSE, so these wrong keys in the registry are set by someone else.

      It's interesting to notice that CMD does not also use the correct path:

      (See ReactOS_2.png)

      Manually fixing the keys in the registry to the correct path, it fixes lot of troubles when the path is different than the English default, especially installer failures. The CMD also points to the correct TEMP path after you change those keys with regedit.

      This is a bit blocker bug, friends.


        1. powerProfiles.png
          34 kB
        2. ReactOS_0.png
          20 kB
          Carlo Bramix
        3. ReactOS_1.png
          19 kB
          Carlo Bramix
        4. ReactOS_2.png
          29 kB
          Carlo Bramix
        5. ReactOS.png
          69 kB
          Carlo Bramix
        6. usetup.patch
          0.6 kB
          Carlo Bramix

          Issue Links



              • Assignee:
                bug zilla Bug Zilla
                Carlo Bramix Carlo Bramix
              • Votes:
                2 Vote for this issue
                5 Start watching this issue


                • Created: