VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-11 12:50:09 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-11 17:28:19 +0200
commit5822ae2b1b824b92189ae238a02b2a958cac6396 (patch)
tree787e599995262009b7018738494f287d66dbd147
parent46a3fe1458b6d34eb5f1b97e8fc6f60656cb3611 (diff)
downloadVeraCrypt-5822ae2b1b824b92189ae238a02b2a958cac6396.tar.gz
VeraCrypt-5822ae2b1b824b92189ae238a02b2a958cac6396.zip
Windows: fix GetPhysicalDriveStorageInformation failure caused by device handle wrongly closed in GetDeviceStorageProperty
-rw-r--r--src/Common/Dlgcode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index ccd44e16..f24299b8 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -7416,7 +7416,6 @@ static BOOL GetDeviceStorageProperty (HANDLE hDevice, STORAGE_PROPERTY_ID proper
}
else
dwRet = ::GetLastError();
- ::CloseHandle(hDevice);
if (!bRet)
{