Commit e5a9c256 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

server: Don't try to synchronize system registers on not initialized threads in…

server: Don't try to synchronize system registers on not initialized threads in get_thread_context request. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ed07d07b
......@@ -1840,7 +1840,7 @@ DECL_HANDLER(get_thread_context)
if (thread->context)
{
/* make sure that system regs are valid in thread context */
if (req->flags & system_flags & ~thread->context->regs.flags)
if (thread->unix_tid != -1 && (req->flags & system_flags & ~thread->context->regs.flags))
get_thread_context( thread, &thread->context->regs, req->flags & system_flags );
if (!get_error()) thread_context = (struct context *)grab_object( thread->context );
}
......
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