Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/FelLib
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-14 21:33:34 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-14 21:33:34 +0300
commitba803d7fe610b99fe0d409f834d66c013d711095 (patch)
treed74a42b036ef0341f90c336437fd1cfa5460ca35 /FelLib
parentd1a35aa2a3b6a0a038496e06f56daf356cfd9adc (diff)
File attributes fix
Diffstat (limited to 'FelLib')
-rw-r--r--FelLib/WinUSBNet/API/DeviceManagement.cs7
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)