diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index af047bcdab5041afcb3576460fd8d73a553115e3..f5a5a451560222b4e93d37656e5f190aebf4c51c 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -134,6 +134,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, .FILE_IS_A_DIRECTORY => return error.IsDir, .NOT_A_DIRECTORY => return error.NotDir, + .USER_MAPPED_FILE => return error.AccessDenied, .INVALID_HANDLE => unreachable, else => return unexpectedStatus(rc), }