From 0ace906477d0dd1d6e7cb4a02180fc6c09684870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 14 Oct 2025 09:28:09 +0200 Subject: [PATCH] std.os.windows.CONTEXT: add sp field to getRegs() result for x86 --- lib/std/os/windows.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index 932e401758..4a2487c836 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -4229,8 +4229,8 @@ pub const CONTEXT = switch (native_arch) { SegSs: DWORD, ExtendedRegisters: [512]BYTE, - pub fn getRegs(ctx: *const CONTEXT) struct { bp: usize, ip: usize } { - return .{ .bp = ctx.Ebp, .ip = ctx.Eip }; + pub fn getRegs(ctx: *const CONTEXT) struct { bp: usize, ip: usize, sp: usize } { + return .{ .bp = ctx.Ebp, .ip = ctx.Eip, .sp = ctx.Esp }; } }, .x86_64 => extern struct {