commit 701aaf0ddf618edffa182db1e888172b6cae4ab1 (tree)
parent a77386eb9847a121bc15af33e5a40bd62f3a67e5
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sun, 15 Mar 2020 14:46:09 -0400
renameatW: handle more windows nt status codes
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/std/os.zig b/lib/std/os.zig
@@ -1683,6 +1683,11 @@ pub fn renameatW(
switch (rc) {
.SUCCESS => return,
.INVALID_HANDLE => unreachable,
+ .INVALID_PARAMETER => unreachable,
+ .OBJECT_PATH_SYNTAX_BAD => unreachable,
+ .ACCESS_DENIED => return error.AccessDenied,
+ .OBJECT_NAME_NOT_FOUND => return error.FileNotFound,
+ .OBJECT_PATH_NOT_FOUND => return error.FileNotFound,
else => return windows.unexpectedStatus(rc),
}
}