Commit c7fcbea4 authored by Alexandre Julliard's avatar Alexandre Julliard

wow64: Don't update the exception address in raise_exception().

parent ce737601
...@@ -325,7 +325,6 @@ __ASM_GLOBAL_FUNC( raise_exception, ...@@ -325,7 +325,6 @@ __ASM_GLOBAL_FUNC( raise_exception,
"movq (%rsp),%rcx\n\t" /* original first parameter */ "movq (%rsp),%rcx\n\t" /* original first parameter */
"movq 0x28(%rsp),%rax\n\t" /* return address */ "movq 0x28(%rsp),%rax\n\t" /* return address */
"movq %rax,0xf8(%rdx)\n\t" /* context->Rip */ "movq %rax,0xf8(%rdx)\n\t" /* context->Rip */
"movq %rax,0x10(%rcx)\n\t" /* rec->ExceptionAddress */
"call " __ASM_NAME("NtRaiseException") ) "call " __ASM_NAME("NtRaiseException") )
#elif defined(__aarch64__) #elif defined(__aarch64__)
__ASM_GLOBAL_FUNC( raise_exception, __ASM_GLOBAL_FUNC( raise_exception,
...@@ -344,7 +343,6 @@ __ASM_GLOBAL_FUNC( raise_exception, ...@@ -344,7 +343,6 @@ __ASM_GLOBAL_FUNC( raise_exception,
"stp x4, x5, [x1, #0xf0]\n\t" /* context->Fp, Lr */ "stp x4, x5, [x1, #0xf0]\n\t" /* context->Fp, Lr */
"add x4, sp, #32\n\t" /* orig stack pointer */ "add x4, sp, #32\n\t" /* orig stack pointer */
"stp x4, x5, [x1, #0x100]\n\t" /* context->Sp, Pc */ "stp x4, x5, [x1, #0x100]\n\t" /* context->Sp, Pc */
"str x5, [x0, #0x10]\n\t" /* rec->ExceptionAddress */
"bl " __ASM_NAME("NtRaiseException") ) "bl " __ASM_NAME("NtRaiseException") )
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment