Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-libraries/winpthreads/tests/pthread_misc/context1.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_misc/context1.c 
b/mingw-w64-libraries/winpthreads/tests/pthread_misc/context1.c
index 808da64a0..51870609b 100644
--- a/mingw-w64-libraries/winpthreads/tests/pthread_misc/context1.c
+++ b/mingw-w64-libraries/winpthreads/tests/pthread_misc/context1.c
@@ -50,8 +50,10 @@ main()
       GetThreadContext(hThread, &context);
 #ifdef _M_X64
          context.Rip = (uintptr_t) anotherEnding;
-#else
+#elif defined(_M_IX86)
          context.Eip = (uintptr_t) anotherEnding;
+#elif defined(_M_ARM) || defined(_M_ARM64)
+         context.Pc = (uintptr_t) anotherEnding;
 #endif
 
       SetThreadContext(hThread, &context);
-- 
2.43.0



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to