Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
111398c3
Commit
111398c3
authored
Dec 01, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add handler for exceptions happening in 32-bit mode.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
47f59be2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
syscall.c
dlls/wow64/syscall.c
+34
-1
No files found.
dlls/wow64/syscall.c
View file @
111398c3
...
@@ -670,6 +670,39 @@ NTSTATUS WINAPI Wow64SystemServiceEx( UINT num, UINT *args )
...
@@ -670,6 +670,39 @@ NTSTATUS WINAPI Wow64SystemServiceEx( UINT num, UINT *args )
}
}
static
void
cpu_simulate
(
void
);
/**********************************************************************
* simulate_filter
*/
static
LONG
CALLBACK
simulate_filter
(
EXCEPTION_POINTERS
*
ptrs
)
{
Wow64PassExceptionToGuest
(
ptrs
);
cpu_simulate
();
/* re-enter simulation to run the exception dispatcher */
return
EXCEPTION_EXECUTE_HANDLER
;
}
/**********************************************************************
* cpu_simulate
*/
static
void
cpu_simulate
(
void
)
{
for
(;;)
{
__TRY
{
pBTCpuSimulate
();
}
__EXCEPT
(
simulate_filter
)
{
/* restart simulation loop */
}
__ENDTRY
}
}
/**********************************************************************
/**********************************************************************
* Wow64AllocateTemp (wow64.@)
* Wow64AllocateTemp (wow64.@)
*
*
...
@@ -769,7 +802,7 @@ void WINAPI Wow64LdrpInitialize( CONTEXT *context )
...
@@ -769,7 +802,7 @@ void WINAPI Wow64LdrpInitialize( CONTEXT *context )
RtlRunOnceExecuteOnce
(
&
init_done
,
process_init
,
NULL
,
NULL
);
RtlRunOnceExecuteOnce
(
&
init_done
,
process_init
,
NULL
,
NULL
);
thread_init
();
thread_init
();
pBTCpuS
imulate
();
cpu_s
imulate
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment