diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2022-11-26 11:02:04 -0800 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-11-28 18:56:11 +0100 |
| commit | 4e078941d032c6ac0e1ea3c85989fd5d9a8747ba (patch) | |
| tree | c25f9d1c45979468cd827a289f1d02b81f10c764 /src | |
| parent | a27bfae0365e8d6d7da695a114497f97b4b20a43 (diff) | |
| download | zig-4e078941d032c6ac0e1ea3c85989fd5d9a8747ba.tar.gz zig-4e078941d032c6ac0e1ea3c85989fd5d9a8747ba.zip | |
os.windows.OpenFile: Add `USER_MAPPED_FILE` as a possible error
Ran into this when using a program that uses CreateFileMapping and then trying to call `std.fs.createFile` on the mapped file. More info can be found here:
https://stackoverflow.com/questions/41844842/when-error-1224-error-user-mapped-file-occurs
Before:
```
error.Unexpected NTSTATUS=0xc0000243
C:\Users\Ryan\Programming\Zig\zig\lib\std\os\windows.zig:138:40: 0x7ff74e957466 in OpenFile (test.exe.obj)
else => return unexpectedStatus(rc),
^
```
After:
```
FAIL (AccessDenied)
C:\Users\Ryan\Programming\Zig\zig\lib\std\os\windows.zig:137:30: 0x7ff7f5b776ea in OpenFile (test.exe.obj)
.USER_MAPPED_FILE => return error.AccessDenied,
^
```
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
