mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: when listing connected devices, consider that a partition exists if CreateFile returns ERROR_ACCESS_DENIED
This commit is contained in:
@@ -12106,9 +12106,10 @@ void UpdateMountableHostDeviceList ()
|
||||
OPEN_EXISTING,
|
||||
0,
|
||||
NULL );
|
||||
if (handle != INVALID_HANDLE_VALUE)
|
||||
if ((handle != INVALID_HANDLE_VALUE) || (GetLastError () == ERROR_ACCESS_DENIED))
|
||||
{
|
||||
AddDeviceToList (mountableDevices, It->SystemNumber, layout->PartitionEntry[i].PartitionNumber);
|
||||
if (handle != INVALID_HANDLE_VALUE)
|
||||
CloseHandle (handle);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user