diff --git a/converter/ibmpc_usb/ibmpc_usb.c b/converter/ibmpc_usb/ibmpc_usb.c index c2b7ea77..b2dc8e85 100644 --- a/converter/ibmpc_usb/ibmpc_usb.c +++ b/converter/ibmpc_usb/ibmpc_usb.c @@ -496,9 +496,9 @@ MOUSE_DONE: b0 = code; b1 = ibmpc_host_recv_response(); - if (b1 == -1) break; + if (b1 == -1) { state = ERROR; break; } b2 = ibmpc_host_recv_response(); - if (b2 == -1) break; + if (b2 == -1) { state = ERROR; break; } switch (mouse_id) { case MOUSE_DEFAULT: diff --git a/converter/ibmpc_usb/ibmpc_usb.cpp b/converter/ibmpc_usb/ibmpc_usb.cpp index cf698763..a17ed342 100644 --- a/converter/ibmpc_usb/ibmpc_usb.cpp +++ b/converter/ibmpc_usb/ibmpc_usb.cpp @@ -506,9 +506,9 @@ MOUSE_DONE: b0 = code; b1 = ibmpc.host_recv_response(); - if (b1 == -1) break; + if (b1 == -1) { state = ERROR; break; } b2 = ibmpc.host_recv_response(); - if (b2 == -1) break; + if (b2 == -1) { state = ERROR; break; } switch (mouse_id) { case MOUSE_DEFAULT: