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