server: Don't try to synchronize system registers on not initialized threads in get_thread_context request.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ed07d07bed
commit
e5a9c256ce
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue