Commit 96841d03 authored by Alexandre Julliard's avatar Alexandre Julliard

wow64: Push a valid return address when calling KiRaiseUserExceptionDispatcher.

parent 419e4d69
......@@ -278,6 +278,8 @@ static void call_raise_user_exception_dispatcher( ULONG code )
I386_CONTEXT ctx = { CONTEXT_I386_ALL };
pBTCpuGetContext( GetCurrentThread(), GetCurrentProcess(), NULL, &ctx );
ctx.Esp -= sizeof(ULONG);
*(ULONG *)ULongToPtr( ctx.Esp ) = ctx.Eip;
ctx.Eip = (ULONG_PTR)pKiRaiseUserExceptionDispatcher;
pBTCpuSetContext( GetCurrentThread(), GetCurrentProcess(), NULL, &ctx );
}
......
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