mirror of
https://github.com/ziglang/zig.git
synced 2024-12-05 03:19:08 +00:00
std.os.windows.ReadLink: add missing alignment of local data buffer
This commit is contained in:
parent
71038c42f5
commit
44ee1c885f
@ -802,7 +802,7 @@ pub fn ReadLink(dir: ?HANDLE, sub_path_w: []const u16, out_buffer: []u8) ReadLin
|
|||||||
}
|
}
|
||||||
defer CloseHandle(result_handle);
|
defer CloseHandle(result_handle);
|
||||||
|
|
||||||
var reparse_buf: [MAXIMUM_REPARSE_DATA_BUFFER_SIZE]u8 = undefined;
|
var reparse_buf: [MAXIMUM_REPARSE_DATA_BUFFER_SIZE]u8 align(@alignOf(REPARSE_DATA_BUFFER)) = undefined;
|
||||||
_ = DeviceIoControl(result_handle, FSCTL_GET_REPARSE_POINT, null, reparse_buf[0..]) catch |err| switch (err) {
|
_ = DeviceIoControl(result_handle, FSCTL_GET_REPARSE_POINT, null, reparse_buf[0..]) catch |err| switch (err) {
|
||||||
error.AccessDenied => unreachable,
|
error.AccessDenied => unreachable,
|
||||||
else => |e| return e,
|
else => |e| return e,
|
||||||
|
Loading…
Reference in New Issue
Block a user