Commit 8b99c944 authored by Albert den Haan's avatar Albert den Haan Committed by Alexandre Julliard

For various reasons some of our libwine executables must have a "." in

their file names. The "." causes trouble when the file name is used as the class name for an X resource as wine does for command line parsing under X.
parent 566e8547
......@@ -711,6 +711,7 @@ void MAIN_ParseModeOption( char *arg )
static void MAIN_ParseOptions( int *argc, char *argv[] )
{
int i;
char *pcDot;
Options.argc = argc;
Options.argv = argv;
......@@ -720,6 +721,10 @@ static void MAIN_ParseOptions( int *argc, char *argv[] )
/* initialise Options.language to 0 to tell "no language choosen yet" */
Options.language = 0;
/* make sure there is no "." in Options.programName to confuse the X
resource database lookups */
if ((pcDot = strchr(Options.programName, '.'))) *pcDot = '\0';
for (i = 1; i < *argc; i++)
{
if (!strcmp( argv[i], "-v" ) || !strcmp( argv[i], "-version" ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment