[Spice-devel] [PATCH v3 7/7] UsbDeviceManager: fix usbdk standalone mode
Kirill Moizik
kirill at daynix.com
Mon Jun 15 02:57:19 PDT 2015
From: Kirill Moizik <kirillm at daynix.com>
grey out usb redirection widget if neither usbclerk nor usbdk available
Signed-off-by: Kirill Moizik <kirillm at daynix.com>
---
src/usb-device-manager.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 987cb20..5b8151f 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -259,10 +259,12 @@ static gboolean spice_usb_device_manager_initable_init(GInitable *initable,
#endif
#ifdef G_OS_WIN32
- priv->installer = spice_win_usb_driver_new(err);
- if (!priv->installer) {
- SPICE_DEBUG("failed to initialize winusb driver");
- return FALSE;
+ if (priv->use_usbclerk) {
+ priv->installer = spice_win_usb_driver_new(err);
+ if (!priv->installer) {
+ SPICE_DEBUG("failed to initialize winusb driver");
+ return FALSE;
+ }
}
#endif
--
2.1.0
More information about the Spice-devel
mailing list