Commit 926acf8f73cab2c564bf23148d7ef049ef936e36
1 parent
966439a6
Pass correct pointer to HID keyboard event handler, fixes regression from IDLE mode introduction.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3180 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/usb-hid.c
... | ... | @@ -582,7 +582,7 @@ static void usb_keyboard_handle_reset(USBDevice *dev) |
582 | 582 | { |
583 | 583 | USBHIDState *s = (USBHIDState *)dev; |
584 | 584 | |
585 | - qemu_add_kbd_event_handler(usb_keyboard_event, &s->kbd); | |
585 | + qemu_add_kbd_event_handler(usb_keyboard_event, s); | |
586 | 586 | s->protocol = 1; |
587 | 587 | } |
588 | 588 | ... | ... |