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[] )
|
static void MAIN_ParseOptions( int *argc, char *argv[] )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
char *pcDot;
|
||||||
|
|
||||||
Options.argc = argc;
|
Options.argc = argc;
|
||||||
Options.argv = argv;
|
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" */
|
/* initialise Options.language to 0 to tell "no language choosen yet" */
|
||||||
Options.language = 0;
|
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++)
|
for (i = 1; i < *argc; i++)
|
||||||
{
|
{
|
||||||
if (!strcmp( argv[i], "-v" ) || !strcmp( argv[i], "-version" ))
|
if (!strcmp( argv[i], "-v" ) || !strcmp( argv[i], "-version" ))
|
||||||
|
|
Loading…
Reference in New Issue