Skip to content

Commit

Permalink
aio: windows: fix initialization error in ovlOff
Browse files Browse the repository at this point in the history
  • Loading branch information
RcCreeperTech committed Aug 28, 2024
1 parent e507a62 commit def09f3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/aio/Windows.zig
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,9 @@ fn onThreadTimeout(ctx: *anyopaque, user_data: usize) void {
}

fn ovlOff(offset: u64) io.OVERLAPPED {
return .{
.Internal = undefined,
.InternalHigh = undefined,
.Anonymous = .{ .Anonymous = @bitCast(offset) },
.hEvent = undefined,
};
var result = std.mem.zeroes(io.OVERLAPPED);
result.Anonymous = .{ .Anonymous = @bitCast(offset) };
return result;
}

const AccessInfo = packed struct {
Expand Down

0 comments on commit def09f3

Please sign in to comment.