mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
renameatW: handle more windows nt status codes
This commit is contained in:
parent
a77386eb98
commit
701aaf0ddf
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user