Commit 829730408920371bdd18892ca5e208b72403b76e

Kano 2013-01-23T20:41:29

USB device locking NOOP for windows (for now)

diff --git a/usbutils.c b/usbutils.c
index 2e758a0..035e562 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -598,6 +598,10 @@ union semun {
 static bool cgminer_usb_lock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
 {
 #ifdef WIN32
+	// NOOP for now
+	drv = 0;
+	bus_number = device_address = 0;
+	return true;
 #else
 	struct semid_ds seminfo;
 	union semun opt;
@@ -686,6 +690,9 @@ static bool cgminer_usb_lock(struct device_drv *drv, libusb_device *dev)
 static void cgminer_usb_unlock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
 {
 #ifdef WIN32
+	// NOOP for now
+	drv = 0;
+	bus_number = device_address = 0;
 #else
 	char name[64];
 	key_t key;