From 1c87f50f1cc24287bbde37f2310fa20ea9c43af6 Mon Sep 17 00:00:00 2001 From: Kevin Baker Date: Thu, 12 Sep 2024 13:32:11 -0500 Subject: [PATCH] win: add correct location of FILE_READ_ONLY_VOLUME, correct call --- src/windows/disk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), )