mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
raw-win32: Fix bdrv_flush return value
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
0d09c79700
commit
1b40bbd13a
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ static int raw_flush(BlockDriverState *bs)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = FlushFileBuffers(s->hfile);
|
ret = FlushFileBuffers(s->hfile);
|
||||||
if (ret != 0) {
|
if (ret == 0) {
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue