diff options
author | Kevin Wolf | 2011-01-28 15:57:39 +0100 |
---|---|---|
committer | Kevin Wolf | 2011-01-31 10:03:00 +0100 |
commit | 1b40bbd13a2d37dcd88763b84d01ec68bc96ff14 (patch) | |
tree | 72bae71caa5de861bfd8ec15af0b220114712b56 /block/raw-win32.c | |
parent | qed: Images with backing file do not require QED_F_NEED_CHECK (diff) | |
download | qemu-1b40bbd13a2d37dcd88763b84d01ec68bc96ff14.tar.gz qemu-1b40bbd13a2d37dcd88763b84d01ec68bc96ff14.tar.xz qemu-1b40bbd13a2d37dcd88763b84d01ec68bc96ff14.zip |
raw-win32: Fix bdrv_flush return value
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw-win32.c')
-rw-r--r-- | block/raw-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/raw-win32.c b/block/raw-win32.c index 06c97101bb..c204a80d79 100644 --- a/block/raw-win32.c +++ b/block/raw-win32.c @@ -153,7 +153,7 @@ static int raw_flush(BlockDriverState *bs) int ret; ret = FlushFileBuffers(s->hfile); - if (ret != 0) { + if (ret == 0) { return -EIO; } |