mirror of https://github.com/xqemu/xqemu.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;
|
int ret;
|
||||||
|
|
||||||
ret = FlushFileBuffers(s->hfile);
|
ret = FlushFileBuffers(s->hfile);
|
||||||
if (ret != 0) {
|
if (ret == 0) {
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue