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

Improvement to GetDriveType() Function

    XMLWordPrintable

    Details

      Description

      This patch improves the accuracy of GetDriveType().

      • It now detects a floppy drive with no media as DRIVE_REMOVABLE instead of DRIVE_NO_ROOT_DIR.
      • It also correctly detects a CDROM drive with no media as DRIVE_CDROM and not DRIVE_NO_ROOT_DIR.

        Attachments

        1. disk.c_GetDriveTypeW()_00.diff
          1 kB
        2. disk.c_GetDriveTypeW()_00.png
          disk.c_GetDriveTypeW()_00.png
          37 kB
        3. disk.c_v2.diff
          2 kB
        4. DriveTypeTest.png
          DriveTypeTest.png
          38 kB
        5. DriveTypeTest.zip
          27 kB
        6. GetDriveType.diff
          2 kB
        7. GetDriveTypeW_00.png
          GetDriveTypeW_00.png
          61 kB
        8. GetDriveTypeW_01.png
          GetDriveTypeW_01.png
          58 kB
        9. GetDriveTypeW_02.png
          GetDriveTypeW_02.png
          66 kB
        10. GetDriveTypeW_log.png
          GetDriveTypeW_log.png
          74 kB
        11. GetDriveTypeW_RoS-screenshot.png
          GetDriveTypeW_RoS-screenshot.png
          36 kB
        12. GetDriveTypeW.log
          113 kB
        13. GetFileType.txt
          0.4 kB

          Issue Links

            Activity

              People

              • Assignee:
                hbelusca hbelusca
                Reporter:
                Barrett.Karish Barrett.Karish
              • Votes:
                2 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: