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.

diff --git a/misc/main.c b/misc/main.c
index f7a36a9..66003ba 100644
--- a/misc/main.c
+++ b/misc/main.c
@@ -711,6 +711,7 @@
 static void MAIN_ParseOptions( int *argc, char *argv[] )
 {
     int i;
+    char *pcDot;
 
     Options.argc = argc;
     Options.argv = argv;
@@ -720,6 +721,10 @@
     /* 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" ))