aboutsummaryrefslogtreecommitdiff
path: root/block-raw-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-raw-win32.c')
-rw-r--r--block-raw-win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block-raw-win32.c b/block-raw-win32.c
index 8564a72762..d034b4a069 100644
--- a/block-raw-win32.c
+++ b/block-raw-win32.c
@@ -145,6 +145,8 @@ static int raw_read(BlockDriverState *bs, int64_t sector_num,
#endif
return ret_count;
}
+ if (ret_count == count)
+ ret_count = 0;
return ret_count;
}
@@ -171,6 +173,8 @@ static int raw_write(BlockDriverState *bs, int64_t sector_num,
#endif
return ret_count;
}
+ if (ret_count == count)
+ ret_count = 0;
return ret_count;
}