SelfInfo.Windows: a few fixes for std.Io

This commit is contained in:
Ryan Liptak 2025-12-19 03:14:12 -08:00 committed by Andrew Kelley
parent 2f30b0f44d
commit f96ef9780a

View file

@ -149,8 +149,9 @@ pub const UnwindContext = struct {
return ctx.cur.getRegs().bp;
}
};
pub fn unwindFrame(si: *SelfInfo, gpa: Allocator, context: *UnwindContext) Error!usize {
pub fn unwindFrame(si: *SelfInfo, gpa: Allocator, io: Io, context: *UnwindContext) Error!usize {
_ = si;
_ = io;
_ = gpa;
const current_regs = context.cur.getRegs();
@ -391,7 +392,7 @@ const Module = struct {
.section_view = section_view,
};
};
errdefer if (mapped_file) |*mf| mf.deinit();
errdefer if (mapped_file) |*mf| mf.deinit(io);
const coff_image_base = coff_obj.getImageBase();