From 78b5d43a0c03dafa711a19310db6f4bd8f100b55 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 8 Dec 2019 14:35:26 +0100 Subject: Fix Windows file creation mode Signed-off-by: David Oberhollenzer --- lib/sqfs/win32/io_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3