Commit f555ee3b authored by Alexandre Julliard's avatar Alexandre Julliard

wow64: Call the CPU backend to get/set the current thread context.

parent 51c3cfdd
......@@ -353,7 +353,7 @@ void * WINAPI __wine_get_unix_opcode(void)
*/
NTSTATUS WINAPI BTCpuGetContext( HANDLE thread, HANDLE process, void *unknown, I386_CONTEXT *ctx )
{
return NtQueryInformationThread( thread, ThreadWow64Context, ctx, sizeof(*ctx), NULL );
return RtlWow64GetThreadContext( thread, ctx );
}
......@@ -362,7 +362,7 @@ NTSTATUS WINAPI BTCpuGetContext( HANDLE thread, HANDLE process, void *unknown, I
*/
NTSTATUS WINAPI BTCpuSetContext( HANDLE thread, HANDLE process, void *unknown, I386_CONTEXT *ctx )
{
return NtSetInformationThread( thread, ThreadWow64Context, ctx, sizeof(*ctx) );
return RtlWow64SetThreadContext( thread, 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