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.
This commit is contained in:
parent
566e8547f3
commit
8b99c944ed
|
@ -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" ))
|
||||
|
|
Loading…
Reference in New Issue