mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +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 New Issue
Block a user