diff --git a/src/windows/disk.rs b/src/windows/disk.rs index a201c3fb1..5c880670e 100644 --- a/src/windows/disk.rs +++ b/src/windows/disk.rs @@ -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, @@ -250,7 +251,6 @@ pub(crate) unsafe fn get_list() -> Vec { Some(&mut name), None, None, - None, Some(&mut flags), Some(&mut file_system), )