Module: wine Branch: master Commit: 0f8706ec33b3193f19b3a55247fe515497063fc5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0f8706ec33b3193f19b3a55247...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Oct 6 17:56:51 2006 +0200
winex11.drv: Give XInitThreads another chance.
---
dlls/winex11.drv/x11drv_main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index 0403b5d..95f9d10 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -383,6 +383,8 @@ static BOOL process_attach(void)
/* Open display */
+ if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" ); + if (!(display = XOpenDisplay( NULL ))) return FALSE;
fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */