mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -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;
|
||||
|
||||
ret = FlushFileBuffers(s->hfile);
|
||||
if (ret != 0) {
|
||||
if (ret == 0) {
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue