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>
feature/deterministic
Jacek Caban 2020-04-28 19:38:09 +02:00 committed by Alexandre Julliard
parent ed07d07bed
commit e5a9c256ce
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}