diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2025-12-19 03:14:12 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:10 -0800 |
| commit | f96ef9780a4604316ff9bcb5cc2f0775c0de5c79 (patch) | |
| tree | fb9a9181c452d06960e6aacc3e6c552ff2cb2549 /lib/std/debug/SelfInfo | |
| parent | 2f30b0f44d5dbdb80362f181f35504965db733f9 (diff) | |
| download | zig-f96ef9780a4604316ff9bcb5cc2f0775c0de5c79.tar.gz zig-f96ef9780a4604316ff9bcb5cc2f0775c0de5c79.zip | |
SelfInfo.Windows: a few fixes for std.Io
Diffstat (limited to 'lib/std/debug/SelfInfo')
| -rw-r--r-- | lib/std/debug/SelfInfo/Windows.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/debug/SelfInfo/Windows.zig b/lib/std/debug/SelfInfo/Windows.zig index c296b28702..c34c60f3ec 100644 --- a/lib/std/debug/SelfInfo/Windows.zig +++ b/lib/std/debug/SelfInfo/Windows.zig @@ -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(); |
