From a881146372ae3789ac7d3967054f61973f769458 Mon Sep 17 00:00:00 2001 From: The Arrayser <68914060+TheArrayser@users.noreply.github.com> Date: Sun, 28 Aug 2022 14:52:18 +0200 Subject: [PATCH] Add files --- System Abstraction/win32/cdb_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System Abstraction/win32/cdb_file.c b/System Abstraction/win32/cdb_file.c index 76484e7..b7737ab 100644 --- a/System Abstraction/win32/cdb_file.c +++ b/System Abstraction/win32/cdb_file.c @@ -29,7 +29,7 @@ sus_File sus_fileOpenInMem(char * fileName, unsigned long parameter){ NULL, (parameter & SUS_FILE_NEW ? CREATE_NEW : OPEN_EXISTING), //Open the file only if it exists/if it DOES NOT EXIST to prevent user error FILE_FLAG_RANDOM_ACCESS | //optimize for random access to file - (parameter & SUS_FILE_TEMP ? (FILE_ATTRIBUTE_TEMPORARY | FILE_FLAG_DELETE_ON_CLOSE) : FILE_ATTRIBUTE_NORMAL), // just a normal file :D / automatically remove the file, if no longer needed + ((parameter & SUS_FILE_TEMP == SUS_FILE_TEMP) ? (FILE_ATTRIBUTE_TEMPORARY | FILE_FLAG_DELETE_ON_CLOSE) : FILE_ATTRIBUTE_NORMAL), // just a normal file :D / automatically remove the file, if no longer needed NULL); if(currentFile->fileHandle == NULL || currentFile->fileHandle == INVALID_HANDLE_VALUE){ //debug