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

kernel32 - GetSystemDirectory() outputs incorrect path

    XMLWordPrintable

    Details

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

      Description

      While attempting to enhance one of the programs, I noticed that while determining if a file is in the system32 directory, that it just didn't work. And if you were curious at what I was trying to do, I was experimenting with ways to install screensavers on ReactOS via the screensaver's context menu.

      After doing a bit of digging, I noticed that the path name that GetSystemDirectory() was wrong. However, the only problem is that one of the letters is capitalized, when it should not be. From what I understand, Windows files/folder names are case sensitive. Also, I've checked with both XP and 7, and saw that the 'system32' folder name is all in lowercase.

        Attachments

        1. 62300_cmd.png
          62300_cmd.png
          35 kB
        2. GetSystemDirectory output.png
          GetSystemDirectory output.png
          28 kB
        3. main.c
          0.2 kB
        4. SystemDirTest.exe
          9 kB

          Activity

            People

            • Assignee:
              bug zilla Bug Zilla
              Reporter:
              milawynsrealm milawynsrealm
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: