mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 10:43:38 +00:00
server: Avoid crash in set_thread_desktop if the thread doesn't have a queue.
This commit is contained in:
parent
4be3d4c12b
commit
71b94726d9
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue