Commit 30336441 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

wow64: Don't re-enter cpu_simulate() from exception filter.

Avoids an eventual stack overflow in exception-heavy applications.
parent 25dce613
...@@ -721,15 +721,12 @@ NTSTATUS WINAPI Wow64SystemServiceEx( UINT num, UINT *args ) ...@@ -721,15 +721,12 @@ NTSTATUS WINAPI Wow64SystemServiceEx( UINT num, UINT *args )
} }
static void cpu_simulate(void);
/********************************************************************** /**********************************************************************
* simulate_filter * simulate_filter
*/ */
static LONG CALLBACK simulate_filter( EXCEPTION_POINTERS *ptrs ) static LONG CALLBACK simulate_filter( EXCEPTION_POINTERS *ptrs )
{ {
Wow64PassExceptionToGuest( ptrs ); Wow64PassExceptionToGuest( ptrs );
cpu_simulate(); /* re-enter simulation to run the exception dispatcher */
return EXCEPTION_EXECUTE_HANDLER; return EXCEPTION_EXECUTE_HANDLER;
} }
......
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