mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07: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
1 changed files with 1 additions and 1 deletions
|
@ -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