Module: wine Branch: master Commit: e5a9c256ce08868f65ed730c00cf016a97369ce3 URL: https://source.winehq.org/git/wine.git/?a=commit;h=e5a9c256ce08868f65ed730c0... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Apr 28 19:38:09 2020 +0200 server: Don't try to synchronize system registers on not initialized threads in get_thread_context request. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- server/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/thread.c b/server/thread.c index 7c1c1108eb..99ae99b26f 100644 --- a/server/thread.c +++ b/server/thread.c @@ -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 ); }