diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index cfa50e162d..953a16a2ea 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -182,6 +182,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN .PIPE_BUSY => return error.PipeBusy, .OBJECT_PATH_SYNTAX_BAD => unreachable, .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, + .FILE_IS_A_DIRECTORY => return error.IsDir, else => return unexpectedStatus(rc), } }