[Spice-devel] [PATCH usbredir 4/9] Pick up the incoming id so we respond correctly.

Jeremy White jwhite at codeweavers.com
Wed Dec 9 14:16:59 PST 2015


Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 usbredirtestserver/usbredirtestserver.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/usbredirtestserver/usbredirtestserver.c b/usbredirtestserver/usbredirtestserver.c
index 4937fba..2539182 100644
--- a/usbredirtestserver/usbredirtestserver.c
+++ b/usbredirtestserver/usbredirtestserver.c
@@ -847,8 +847,10 @@ static void usbredirtestserver_control_packet(void *priv, uint64_t id,
     }
     printf("\n");
 
-    if (info->expect_ctrl)
+    if (info->expect_ctrl) {
         check_expect_ctrl(info, control_packet, data, data_len);
+        info->id = id;
+    }
 
     usbredirparser_free_packet_data(info->parser, data);
 }
-- 
2.1.4



More information about the Spice-devel mailing list