Commit 3e0c21be authored by Alexandre Julliard's avatar Alexandre Julliard

wow64: Initialize the syscall dispatcher in the 32-bit TEB.

parent 7b0d9744
......@@ -827,8 +827,10 @@ static DWORD WINAPI process_init( RTL_RUN_ONCE *once, void *param, void **contex
*/
static void thread_init(void)
{
TEB32 *teb32 = (TEB32 *)((char *)NtCurrentTeb() + NtCurrentTeb()->WowTebOffset);
void *cpu_area_ctx;
teb32->WOW32Reserved = PtrToUlong( pBTCpuGetBopCode() );
RtlWow64GetCurrentCpuArea( NULL, &cpu_area_ctx, NULL );
NtCurrentTeb()->TlsSlots[WOW64_TLS_WOW64INFO] = wow64info;
if (pBTCpuThreadInit) pBTCpuThreadInit();
......
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