diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-08 14:35:26 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-08 14:36:06 +0100 |
commit | 78b5d43a0c03dafa711a19310db6f4bd8f100b55 (patch) | |
tree | e089df58dd529fc2ad31981d20de71d44e5d9687 /lib/sqfs/win32/io_file.c | |
parent | d98411f53939b7e308f186e5b61791677f3b0ad9 (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.c | 2 |
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; } |