aboutsummaryrefslogtreecommitdiff
path: root/block/win32-aio.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-01-16 21:19:59 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-01-17 10:57:13 +0100
commitbcbbd234d42f1111e42b91376db61922d42e7e9e (patch)
treea9f1b6493dd9e74fc4dd78700f7ce1d00553394e /block/win32-aio.c
parent2ea9b58f0bc62445b7ace2381b4c4db7d5597e19 (diff)
win32-aio: Fix vectored reads
Copying data in the right direction really helps a lot! Cc: qemu-stable@nongnu.org Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/win32-aio.c')
-rw-r--r--block/win32-aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/win32-aio.c b/block/win32-aio.c
index 03833700b4..e4b7b75d29 100644
--- a/block/win32-aio.c
+++ b/block/win32-aio.c
@@ -84,7 +84,7 @@ static void win32_aio_process_completion(QEMUWin32AIOState *s,
int i;
for (i = 0; i < qiov->niov; ++i) {
- memcpy(p, qiov->iov[i].iov_base, qiov->iov[i].iov_len);
+ memcpy(qiov->iov[i].iov_base, p, qiov->iov[i].iov_len);
p += qiov->iov[i].iov_len;
}
qemu_vfree(waiocb->buf);