diff options
Diffstat (limited to 'block/raw-win32.c')
-rw-r--r-- | block/raw-win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/raw-win32.c b/block/raw-win32.c index e4b0b75..c56bf83 100644 --- a/block/raw-win32.c +++ b/block/raw-win32.c @@ -255,13 +255,13 @@ static int raw_create(const char *filename, QEMUOptionParameter *options) options++; } - fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, - 0644); + fd = qemu_open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, + 0644); if (fd < 0) return -EIO; set_sparse(fd); ftruncate(fd, total_size * 512); - close(fd); + qemu_close(fd); return 0; } |