mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
fix(os): initialize file open flags to 0
This commit is contained in:
parent
8068d515df
commit
92c0390ca4
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ HOSFILE OsCreateFile(const char* fileName, uint32_t desiredAccess, uint32_t shar
|
||||||
BLIZZARD_VALIDATE(desiredAccess != 0, "invalid desired access", nullptr);
|
BLIZZARD_VALIDATE(desiredAccess != 0, "invalid desired access", nullptr);
|
||||||
BLIZZARD_VALIDATE(createDisposition <= OS_TRUNCATE_EXISTING, "invalid create disposition", nullptr);
|
BLIZZARD_VALIDATE(createDisposition <= OS_TRUNCATE_EXISTING, "invalid create disposition", nullptr);
|
||||||
|
|
||||||
uint32_t flags;
|
uint32_t flags = 0;
|
||||||
|
|
||||||
// Read/write flags
|
// Read/write flags
|
||||||
if (desiredAccess & OS_GENERIC_READ) {
|
if (desiredAccess & OS_GENERIC_READ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue