mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 03:25:01 +00:00
Handle INVALID_DEVICE_REQUEST in std.os.windows.DeviceIoControl
This is possible when e.g. calling CreateSymbolicLink on a FAT32 filesystem
This commit is contained in:
parent
442933936a
commit
c57749f5ce
@ -236,6 +236,7 @@ pub fn DeviceIoControl(
|
||||
.SUCCESS => {},
|
||||
.PRIVILEGE_NOT_HELD => return error.AccessDenied,
|
||||
.ACCESS_DENIED => return error.AccessDenied,
|
||||
.INVALID_DEVICE_REQUEST => return error.AccessDenied, // Not supported by the underlying filesystem
|
||||
.INVALID_PARAMETER => unreachable,
|
||||
else => return unexpectedStatus(rc),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user