From 5822ae2b1b824b92189ae238a02b2a958cac6396 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 11 Jun 2017 12:50:09 +0200 Subject: Windows: fix GetPhysicalDriveStorageInformation failure caused by device handle wrongly closed in GetDeviceStorageProperty --- src/Common/Dlgcode.c | 1 - 1 file changed, 1 deletion(-) 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) { -- cgit v1.2.3