Commit 71b94726 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Avoid crash in set_thread_desktop if the thread doesn't have a queue.

parent 4be3d4c1
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment