diff --git a/client/spice/spice.c b/client/spice/spice.c index 53e0cd1c..a3ca9cbe 100644 --- a/client/spice/spice.c +++ b/client/spice/spice.c @@ -36,7 +36,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include #include -#include #include "messages.h" #include "rsa.h" @@ -616,7 +615,7 @@ bool spice_connect_channel(struct SpiceChannel * channel) return false; } - if (reply.error != SPICEC_ERROR_CODE_SUCCESS) + if (reply.error != SPICE_LINK_ERR_OK) { DEBUG_ERROR("server replied with error %u", reply.error); spice_disconnect_channel(channel);