mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
fix(file): file mode must be initialized to zero
This commit is contained in:
parent
4e116bd69a
commit
367b8149f3
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
int32_t OsCreateFileMode(uint32_t desiredAccess, uint32_t shareMode, uint32_t createDisposition) {
|
||||
using Mode = Blizzard::File::Mode;
|
||||
|
||||
int32_t mode;
|
||||
int32_t mode = 0;
|
||||
|
||||
if (desiredAccess & OS_GENERIC_READ) {
|
||||
mode |= Mode::read;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue