diff options
author | Kevin Wolf <kwolf@redhat.com> | 2011-01-28 15:57:39 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-01-31 10:03:00 +0100 |
commit | 1b40bbd13a2d37dcd88763b84d01ec68bc96ff14 (patch) | |
tree | 72bae71caa5de861bfd8ec15af0b220114712b56 /block | |
parent | 0d09c7970063ecdabdc2841ffa32e1cf3e032336 (diff) | |
download | qemu-1b40bbd13a2d37dcd88763b84d01ec68bc96ff14.zip qemu-1b40bbd13a2d37dcd88763b84d01ec68bc96ff14.tar.gz qemu-1b40bbd13a2d37dcd88763b84d01ec68bc96ff14.tar.bz2 |
raw-win32: Fix bdrv_flush return value
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-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 06c9710..c204a80 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; } |