If unable to open an X11 display mention that X needs to be running

and that $DISPLAY must be set correctly.
This commit is contained in:
Chris Morgan 2004-01-30 22:54:39 +00:00 committed by Alexandre Julliard
parent 8091a89011
commit 98ae5ac103
1 changed files with 2 additions and 0 deletions

View File

@ -335,6 +335,7 @@ static void process_attach(void)
if (!(display = XOpenDisplay( NULL )))
{
MESSAGE( "x11drv: Can't open display: %s\n", XDisplayName(NULL) );
MESSAGE( "Please ensure that your X server is running and that $DISPLAY is set correctly.\n" );
ExitProcess(1);
}
fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */
@ -465,6 +466,7 @@ struct x11drv_thread_data *x11drv_init_thread_data(void)
{
wine_tsx11_unlock();
MESSAGE( "x11drv: Can't open display: %s\n", XDisplayName(NULL) );
MESSAGE( "Please ensure that your X server is running and that $DISPLAY is set correctly.\n" );
ExitProcess(1);
}