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

ntdll: Fix floating point and extended registers not being restored under Wow64.

parent 25990422
......@@ -2078,10 +2078,12 @@ NTSTATUS set_thread_wow64_context( HANDLE handle, const void *ctx, ULONG size )
if (flags & CONTEXT_I386_EXTENDED_REGISTERS)
{
memcpy( &frame->xsave, context->ExtendedRegisters, sizeof(frame->xsave) );
frame->restore_flags |= CONTEXT_FLOATING_POINT;
}
else if (flags & CONTEXT_I386_FLOATING_POINT)
{
fpu_to_fpux( &frame->xsave, &context->FloatSave );
frame->restore_flags |= CONTEXT_FLOATING_POINT;
}
if (flags & CONTEXT_I386_XSTATE)
{
......
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