Alexandre Julliard : server:
Avoid crash in set_thread_desktop if the thread doesn't have a queue.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 6 12:54:53 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 71b94726d9661d2f51afe4bd72539de656dcd0a3
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=71b94726d9661d2f51afe4bd72539de656dcd0a3
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Mar 6 15:10:59 2006 +0100
server: Avoid crash in set_thread_desktop if the thread doesn't have a queue.
---
server/winstation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/winstation.c b/server/winstation.c
index 30cbe18..da24be4 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 );
More information about the wine-cvs
mailing list