aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-hid.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-17 17:27:00 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-17 17:27:00 +0000
commit926acf8f73cab2c564bf23148d7ef049ef936e36 (patch)
tree77091f44255f4fe2be5384651dcb6a6eadbb2565 /hw/usb-hid.c
parent966439a67830239a6c520c5df6c55627b8153c8b (diff)
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
Diffstat (limited to 'hw/usb-hid.c')
-rw-r--r--hw/usb-hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-hid.c b/hw/usb-hid.c
index e0b2ba413e..aebcf032c3 100644
--- a/hw/usb-hid.c
+++ b/hw/usb-hid.c
@@ -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;
}