Commit 5031c6d9 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Convert WoW context to native context when running in 32-bit code.

It fixes single-stepping in the kernel32:debugger tests.
parent 7686cba1
......@@ -1068,7 +1068,10 @@ static void contexts_from_server( CONTEXT *context, context_t server_contexts[2]
if (native_context)
{
context_from_server( native_context, &server_contexts[0], native_machine );
if (wow_context) context_from_server( wow_context, &server_contexts[1], main_image_info.Machine );
if (wow_context)
context_from_server( wow_context, &server_contexts[1], main_image_info.Machine );
else
context_from_server( native_context, &server_contexts[1], native_machine );
}
else context_from_server( wow_context, &server_contexts[0], main_image_info.Machine );
}
......
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