Make argv[0] an absolute path so 'wine d:setup' works
Dan Kegel
dank at kegel.com
Wed Jan 1 22:03:40 CST 2003
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
-------------- next part --------------
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;
More information about the wine-patches
mailing list