[Spice-devel] [PATCH spice-gtk 05/14] win-usb: throw an error if reply.status == 0
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Apr 24 08:50:53 PDT 2014
---
gtk/win-usb-driver-install.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gtk/win-usb-driver-install.c b/gtk/win-usb-driver-install.c
index c3a7ace..865f795 100644
--- a/gtk/win-usb-driver-install.c
+++ b/gtk/win-usb-driver-install.c
@@ -175,6 +175,14 @@ void win_usb_driver_handle_reply_cb(GObject *gobject,
goto failed_reply;
}
+ if (priv->reply.status == 0) {
+ g_simple_async_result_set_error(priv->result,
+ SPICE_WIN_USB_DRIVER_ERROR,
+ SPICE_WIN_USB_DRIVER_ERROR_MESSAGE,
+ "usbclerk error reply");
+ goto failed_reply;
+ }
+
failed_reply:
g_simple_async_result_complete_in_idle(priv->result);
g_clear_object(&priv->result);
--
1.8.5.3
More information about the Spice-devel
mailing list