Commit 5d555030 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

raw-win32: Fix write request error handling



aio_worker() wrote the return code to the wrong variable.

Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Tested-by: default avatarGuangmu Zhu <guangmuzhu@gmail.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
parent ff770b07
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -119,9 +119,9 @@ static int aio_worker(void *arg)
    case QEMU_AIO_WRITE:
        count = handle_aiocb_rw(aiocb);
        if (count == aiocb->aio_nbytes) {
            count = 0;
            ret = 0;
        } else {
            count = -EINVAL;
            ret = -EINVAL;
        }
        break;
    case QEMU_AIO_FLUSH: