mirror of https://gitee.com/openkylin/qemu.git
raw-win32: Fix bdrv_flush return value
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
0d09c79700
commit
1b40bbd13a
|
@ -153,7 +153,7 @@ static int raw_flush(BlockDriverState *bs)
|
|||
int ret;
|
||||
|
||||
ret = FlushFileBuffers(s->hfile);
|
||||
if (ret != 0) {
|
||||
if (ret == 0) {
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue