retrieve the correct union member
authorMichael Gilbert <mgilbert@debian.org>
Wed, 12 Oct 2022 00:18:28 +0000 (01:18 +0100)
committerMichael Gilbert <mgilbert@debian.org>
Wed, 12 Oct 2022 00:18:28 +0000 (01:18 +0100)
Gbp-Pq: Topic arm64
Gbp-Pq: Name incorrect-member.patch

dlls/dbghelp/cpu_arm64.c

index 2c767e78de4c639a177d26e2a2769e642a0b27b5..be1570b1a06425cf494c13ded0b6272d444bb732 100644 (file)
@@ -170,7 +170,7 @@ static unsigned arm64_map_dwarf_register(unsigned regno, const struct module* mo
 static void *arm64_fetch_context_reg(union ctx *pctx, unsigned regno, unsigned *size)
 {
 #ifdef __aarch64__
-    CONTEXT *ctx = pctx;
+    CONTEXT *ctx = &pctx->ctx;
 
     switch (regno)
     {