summaryrefslogtreecommitdiff
path: root/lib/sqfs/win32/io_file.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-08 14:35:26 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-08 14:36:06 +0100
commit78b5d43a0c03dafa711a19310db6f4bd8f100b55 (patch)
treee089df58dd529fc2ad31981d20de71d44e5d9687 /lib/sqfs/win32/io_file.c
parentd98411f53939b7e308f186e5b61791677f3b0ad9 (diff)
Fix Windows file creation mode
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/win32/io_file.c')
-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;
}