raw-win32: Fix bdrv_flush return value

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Kevin Wolf 2011-01-28 15:57:39 +01:00
parent 0d09c79700
commit 1b40bbd13a

View File

@ -153,7 +153,7 @@ static int raw_flush(BlockDriverState *bs)
int ret;
ret = FlushFileBuffers(s->hfile);
if (ret != 0) {
if (ret == 0) {
return -EIO;
}