std.os.windows.OpenFile: handle INVALID_HANDLE ntstatus

This commit is contained in:
Andrew Kelley 2022-10-17 16:53:17 -07:00
parent c7772dd694
commit 9ee4530b9b

View File

@ -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,
.INVALID_HANDLE => unreachable,
else => return unexpectedStatus(rc),
}
}