mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-22 21:01:49 +03:00
fix(console): createDisposition is not a bitfield but an enum
This commit is contained in:
parent
0f04abb9de
commit
25063fa34a
@ -245,11 +245,11 @@ int32_t CVar::Load(HOSFILE file) {
|
||||
int32_t CVar::Load(const char* filename) {
|
||||
char path[STORM_MAX_PATH] = {0};
|
||||
|
||||
auto file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_CREATE_NEW | OS_CREATE_ALWAYS, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
auto file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_OPEN_EXISTING, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
|
||||
if (file == HOSFILE_INVALID) {
|
||||
SStrPrintf(path, STORM_MAX_PATH, "WTF\\%s", filename);
|
||||
file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_CREATE_NEW | OS_CREATE_ALWAYS, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
file = OsCreateFile(filename, OS_GENERIC_READ, 0, OS_OPEN_EXISTING, OS_FILE_ATTRIBUTE_NORMAL, 0x3f3f3f3f);
|
||||
if (file == HOSFILE_INVALID) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user