summaryrefslogtreecommitdiff
path: root/hw/msmouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/msmouse.c')
-rw-r--r--hw/msmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/msmouse.c b/hw/msmouse.c
index b611c2f236..c3b57ea31c 100644
--- a/hw/msmouse.c
+++ b/hw/msmouse.c
@@ -50,7 +50,7 @@ static void msmouse_event(void *opaque,
/* We always send the packet of, so that we do not have to keep track
of previous state of the middle button. This can potentially confuse
some very old drivers for two button mice though. */
- qemu_chr_read(chr, bytes, 4);
+ qemu_chr_be_write(chr, bytes, 4);
}
static int msmouse_chr_write (struct CharDriverState *s, const uint8_t *buf, int len)