Skip to content

Commit

Permalink
win: add correct location of FILE_READ_ONLY_VOLUME, correct call
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbaker committed Sep 12, 2024
1 parent 38b85e6 commit 1c87f50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ use windows::core::{Error, HRESULT, PCWSTR};
use windows::Win32::Foundation::MAX_PATH;
use windows::Win32::Storage::FileSystem::{
FindFirstVolumeW, FindNextVolumeW, FindVolumeClose, GetDiskFreeSpaceExW, GetDriveTypeW,
GetVolumeInformationW, GetVolumePathNamesForVolumeNameW, FILE_READ_ONLY_VOLUME,
GetVolumeInformationW, GetVolumePathNamesForVolumeNameW,
};
use windows::Win32::System::SystemServices::FILE_READ_ONLY_VOLUME;
use windows::Win32::System::Ioctl::{
PropertyStandardQuery, StorageDeviceSeekPenaltyProperty, DEVICE_SEEK_PENALTY_DESCRIPTOR,
IOCTL_STORAGE_QUERY_PROPERTY, STORAGE_PROPERTY_QUERY,
Expand Down Expand Up @@ -250,7 +251,6 @@ pub(crate) unsafe fn get_list() -> Vec<Disk> {
Some(&mut name),
None,
None,
None,
Some(&mut flags),
Some(&mut file_system),
)
Expand Down

0 comments on commit 1c87f50

Please sign in to comment.