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

GetCurrentDirectory and GetTempPath broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Win32SS
    • None
    • Operating System: ReactOS
      Platform: x86 Hardware

    Description

      GetCurrentDirectory and GetTempPath don't behave the way applications might
      expect them to. They even sometimes crash applications. I attached a simple test
      program that should output something like this in reactos (wine tests might test
      more thoroughly, but i haven't really looked at them):

      ==GetCurrentDirectoryA:
      :A: [23]
      :B: [23]
      :C: [22]: D:\rosapps\tests\hello
      :E: [23]: SUCCESS: Buffer untouched!
      :F: [23]: SUCCESS: Buffer untouched!
      ==GetCurrentDirectoryW:
      :A: [23]
      :B: [23]
      :C: [22]: D:\rosapps\tests\hello
      : [23]: SUCCESS: Buffer untouched!
      :E: [23]: SUCCESS: Buffer untouched!
      ==GetTempPathA:
      :A: [34]
      :B: [34]
      :C: [33]: C:\DOCUME~1\Thomas\LOCALS~1\Temp\
      : [34]: SUCCESS: Buffer untouched!
      :E: [34]: SUCCESS: Buffer untouched!
      ==GetTempPathW:
      :A: [34]
      :B: [34]
      :C: [33]: C:\DOCUME~1\Thomas\LOCALS~1\Temp\
      : [34]: SUCCESS: Buffer touched ""!
      : [34]: SUCCESS: Buffer touched ""!
      :E: [34]: SUCCESS: Buffer touched ""!
      :E: [34]: SUCCESS: Buffer touched ""!

      0 tests failed

      Attachments

        1. a2u.c
          0.5 kB
        2. curdir.diff
          3 kB
        3. curdir.patch
          7 kB
        4. curdir2.diff
          6 kB
        5. dirs.png
          dirs.png
          27 kB
        6. test.zip
          7 kB
        7. unic.diff
          1 kB

        Activity

          People

            bug zilla Bug Zilla
            weiden weiden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: