1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: fix GetPhysicalDriveStorageInformation failure caused by device handle wrongly closed in GetDeviceStorageProperty

This commit is contained in:
Mounir IDRASSI
2017-06-11 12:50:09 +02:00
parent 46a3fe1458
commit 5822ae2b1b

View File

@@ -7416,7 +7416,6 @@ static BOOL GetDeviceStorageProperty (HANDLE hDevice, STORAGE_PROPERTY_ID proper
}
else
dwRet = ::GetLastError();
::CloseHandle(hDevice);
if (!bRet)
{