Skip to content

Commit

Permalink
fix bug in volume detection
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Sep 29, 2024
1 parent 16362a0 commit 9625c4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libnw/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ static BOOL GetDriveByVolume(BOOL bIsCdRom, HANDLE hVolume, DWORD* pDrive)
switch (sdnDiskNumber.DeviceType)
{
case FILE_DEVICE_CD_ROM:
case FILE_DEVICE_CD_ROM_FILE_SYSTEM:
//case FILE_DEVICE_CD_ROM_FILE_SYSTEM:
case FILE_DEVICE_DVD:
return bIsCdRom ? TRUE : FALSE;
case FILE_DEVICE_DISK:
case FILE_DEVICE_DISK_FILE_SYSTEM:
case FILE_DEVICE_FILE_SYSTEM:
//case FILE_DEVICE_DISK_FILE_SYSTEM:
//case FILE_DEVICE_FILE_SYSTEM:
return bIsCdRom ? FALSE : TRUE;
}
return FALSE;
Expand Down

0 comments on commit 9625c4e

Please sign in to comment.