Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de writes:
Index: wine/dlls/user/user_main.c
RCS file: /home/wine/wine/dlls/user/user_main.c,v retrieving revision 1.50 diff -u -r1.50 user_main.c --- wine/dlls/user/user_main.c 3 Dec 2002 23:34:54 -0000 1.50 +++ wine/dlls/user/user_main.c 15 Apr 2003 11:05:08 -0000 { count = sizeof(buffer); RegQueryValueExA( hkey, "GraphicsDriver", 0, &type, buffer, &count );
count = sizeof(buffer2);
}RegQueryValueExA( hkey, "TTYdrvFallback", 0, &type, buffer2, &count ); RegCloseKey( hkey );
- if (!strcasecmp("x11drv",buffer) &&
- (GetEnvironmentVariableA("DISPLAY",buffer1,MAX_PATH-1) == 0) &&
- !strcasecmp("y",buffer2))
USER has no business checking the DISPLAY variable, that's an X11 thing. The right way to do this would be to make x11drv fail its initialization in that case, and have USER check for that.