Mercurial > hg > ucis.core
diff USBLib/Communication/WindowsUsbDeviceRegistry.cs @ 52:d4778c3232ad
Prevent exception in HWLib
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Tue, 01 Oct 2013 00:24:39 +0200 |
parents | 556b4fb511bd |
children | df5534af12e9 |
line wrap: on
line diff
--- a/USBLib/Communication/WindowsUsbDeviceRegistry.cs Mon Sep 30 21:24:35 2013 +0200 +++ b/USBLib/Communication/WindowsUsbDeviceRegistry.cs Tue Oct 01 00:24:39 2013 +0200 @@ -10,7 +10,7 @@ public DeviceNode DeviceNode { get; private set; } public static Boolean DecodeDeviceIDs(DeviceNode device, out int vendorID, out int productID, out int revision, out int interfaceID) { - String[] hwids = device.GetPropertyStringArray(CMRDP.HARDWAREID); + String[] hwids = device.HardwareID; String hwid = null; if (hwids == null || hwids.Length < 1 || hwids[0].Length == 0) { hwid = device.DeviceID;