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
          GvG
        2. curdir.diff
          3 kB
          tinus
        3. curdir.patch
          7 kB
          weiden
        4. curdir2.diff
          6 kB
          ekohl
        5. dirs.png
          27 kB
          weiden
        6. unic.diff
          1 kB
          tinus

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: