From cb7f04ce6f9bbd4d0d951ca19e924b912e29b9ea Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 18 Sep 2017 15:50:16 +0200 Subject: [PATCH] server: Don't return debug registers unless explicitly requested. Signed-off-by: Alexandre Julliard --- server/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/thread.c b/server/thread.c index 903420bed3f..2c864a607d0 100644 --- a/server/thread.c +++ b/server/thread.c @@ -1653,7 +1653,7 @@ DECL_HANDLER(get_thread_context) memset( context, 0, sizeof(context_t) ); context->cpu = thread->process->cpu; if (thread->context) copy_context( context, thread->context, req->flags & ~flags ); - if (flags) get_thread_context( thread, context, flags ); + if (req->flags & flags) get_thread_context( thread, context, req->flags & flags ); } release_object( thread ); }