aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/win32/io_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/win32/io_file.c b/lib/sqfs/win32/io_file.c
index c3de1fd..951a0fe 100644
--- a/lib/sqfs/win32/io_file.c
+++ b/lib/sqfs/win32/io_file.c
@@ -141,7 +141,7 @@ sqfs_file_t *sqfs_open_file(const char *filename, sqfs_u32 flags)
access_flags = GENERIC_READ | GENERIC_WRITE;
if (flags & SQFS_FILE_OPEN_OVERWRITE) {
- creation_mode = TRUNCATE_EXISTING;
+ creation_mode = CREATE_ALWAYS;
} else {
creation_mode = CREATE_NEW;
}