Pass correct pointer to HID keyboard event handler, fixes regression from IDLE mode...
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 17 Sep 2007 17:27:00 +0000 (17:27 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 17 Sep 2007 17:27:00 +0000 (17:27 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3180 c046a42c-6fe2-441c-8c8c-71466251a162

hw/usb-hid.c

index e0b2ba413e46ddaffe3c0f359ace937b48ee82ed..aebcf032c358ce4ccbe3b7ca53fce2873baf3b02 100644 (file)
@@ -582,7 +582,7 @@ static void usb_keyboard_handle_reset(USBDevice *dev)
 {
     USBHIDState *s = (USBHIDState *)dev;
 
-    qemu_add_kbd_event_handler(usb_keyboard_event, &s->kbd);
+    qemu_add_kbd_event_handler(usb_keyboard_event, s);
     s->protocol = 1;
 }