From ba803d7fe610b99fe0d409f834d66c013d711095 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sat, 14 Jan 2017 21:33:34 +0300 Subject: File attributes fix --- FelLib/WinUSBNet/API/DeviceManagement.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'FelLib') diff --git a/FelLib/WinUSBNet/API/DeviceManagement.cs b/FelLib/WinUSBNet/API/DeviceManagement.cs index e58a22b1..ab52032a 100644 --- a/FelLib/WinUSBNet/API/DeviceManagement.cs +++ b/FelLib/WinUSBNet/API/DeviceManagement.cs @@ -243,16 +243,16 @@ namespace MadWizard.WinUSBNet.API try { #if DEBUG - Fel.DebugLog("Trying to parse device: "+ pathName); + Fel.DebugLog("Trying to parse device: " + pathName); #endif DeviceDetails details = GetDeviceDetails(pathName, deviceInfoSet, da); if (details.VID == vid && details.PID == pid) deviceList.Add(details); } - catch (APIException) + catch (APIException ex) { #if DEBUG - Fel.DebugLog("Can't parse this device"); + Fel.DebugLog("Can't parse this device: " + ex.Message + ex.StackTrace); #endif continue; } @@ -267,7 +267,6 @@ namespace MadWizard.WinUSBNet.API } memberIndex++; } - } finally { if (deviceInfoSet != IntPtr.Zero && deviceInfoSet != FileIO.INVALID_HANDLE_VALUE) -- cgit v1.2.3