retrieve the correct union member
authorMichael Gilbert <mgilbert@debian.org>
Sat, 19 Mar 2022 00:48:02 +0000 (00:48 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 19 Mar 2022 00:48:02 +0000 (00:48 +0000)
Gbp-Pq: Topic arm64
Gbp-Pq: Name incorrect-member.patch

dlls/dbghelp/cpu_arm64.c

index 515294fe95c217ddb22ff5de0e890953d8cc4748..29a94ea5226aa85cbcfee595fa3b238d789ccacb 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)
     {