| author | |
| committer | |
| log | 117d15ed7a230d065cf88faa8156c08f7160e08b |
| tree | 024eb7846cca4ebc82d6c46b0300a621ca44c5c2 |
| parent | 71c5aab3e740c131e63766be57de19b3dd451972 |
The share_access bitfield was being ORed with what was supposed to be
parts of the default value, meaning that the share_access would be
more permissive than expected.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/windows.zig+1-1| ... | ... | @@ -136,7 +136,7 @@ pub fn OpenFileW( |
| 136 | 136 | .SecurityQualityOfService = null, |
| 137 | 137 | }; |
| 138 | 138 | var io: IO_STATUS_BLOCK = undefined; |
| 139 | const share_access = share_access_opt orelse FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE; | |
| 139 | const share_access = share_access_opt orelse (FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE); | |
| 140 | 140 | |
| 141 | 141 | var delay: usize = 1; |
| 142 | 142 | while (true) { |