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:
Albert den Haan 1999-02-25 18:11:40 +00:00 committed by Alexandre Julliard
parent 566e8547f3
commit 8b99c944ed
1 changed files with 5 additions and 0 deletions

View File

@ -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" ))