From 71b94726d9661d2f51afe4bd72539de656dcd0a3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 6 Mar 2006 15:10:59 +0100 Subject: [PATCH] server: Avoid crash in set_thread_desktop if the thread doesn't have a queue. --- server/winstation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/winstation.c b/server/winstation.c index 30cbe18350f..da24be4378e 100644 --- a/server/winstation.c +++ b/server/winstation.c @@ -477,7 +477,7 @@ DECL_HANDLER(set_thread_desktop) else current->desktop = req->handle; /* FIXME: should we close the old one? */ - if (old_desktop != new_desktop) detach_thread_input( current ); + if (old_desktop != new_desktop && current->queue) detach_thread_input( current ); if (old_desktop) release_object( old_desktop ); release_object( new_desktop );