Make argv[0] an absolute path so 'wine d:setup' works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
	* scheduler/process.c: make argv[0] absolute so 'wine d:setup' works

Copyright 2003, Dan Kegel.  LGPL.

--
Dan Kegel
Linux User #78045
http://www.kegel.com
Index: scheduler/process.c
===================================================================
RCS file: /home/wine/wine/scheduler/process.c,v
retrieving revision 1.205
diff -d -u -r1.205 process.c
--- scheduler/process.c	5 Dec 2002 19:56:15 -0000	1.205
+++ scheduler/process.c	2 Jan 2003 03:49:03 -0000
@@ -669,6 +669,9 @@
     }
 
  found:
+    /* absolutify argv[0] so 'wine d:setup' works */
+    argv[0] = main_exe_name;
+
     /* build command line */
     if (!ENV_BuildCommandLine( argv )) goto error;
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux