diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-01-14 21:33:34 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-01-14 21:33:34 +0300 |
commit | ba803d7fe610b99fe0d409f834d66c013d711095 (patch) | |
tree | d74a42b036ef0341f90c336437fd1cfa5460ca35 /FelLib | |
parent | d1a35aa2a3b6a0a038496e06f56daf356cfd9adc (diff) |
File attributes fix
Diffstat (limited to 'FelLib')
-rw-r--r-- | FelLib/WinUSBNet/API/DeviceManagement.cs | 7 |
1 files changed, 3 insertions, 4 deletions
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)
|