Re: argv[0] needs to be an absolute path

2003-01-04 Thread Uwe Bonnes
Dan == Dan Kegel [EMAIL PROTECTED] writes: Dan Uwe Bonnes wrote: Dan == Dan Kegel [EMAIL PROTECTED] writes: Dan The C program main(int argc, char **argv) { puts(argv[0]); } Dan outputs an absolute path on Windows, but sometimes outputs a Dan relative path on Wine. This

Re: argv[0] needs to be an absolute path

2003-01-04 Thread Dan Kegel
Uwe Bonnes wrote: Did you check that it is CreateProcess that adds the absolute path? I would guess the MS C Library will do it. Dan Not quite sure how to check. Can you suggest a way? Run with relay and snoop on builtin and native msvcrt. Eventually instrument the builtin

Re: argv[0] needs to be an absolute path

2003-01-03 Thread Dan Kegel
Uwe Bonnes wrote: Dan == Dan Kegel [EMAIL PROTECTED] writes: Dan The C program main(int argc, char **argv) { puts(argv[0]); } Dan outputs an absolute path on Windows, but sometimes outputs a Dan relative path on Wine. This causes the commandline $ wine d:setup Dan to fail to

Re: argv[0] needs to be an absolute path

2003-01-02 Thread Uwe Bonnes
Dan == Dan Kegel [EMAIL PROTECTED] writes: Dan The C program main(int argc, char **argv) { puts(argv[0]); } Dan outputs an absolute path on Windows, but sometimes outputs a Dan relative path on Wine. This causes the commandline $ wine d:setup Dan to fail to find its files

Re: argv[0] needs to be an absolute path

2003-01-02 Thread Dan Kegel
sometimes == if the program was invoked with a relative path BTW the one-line patch I submitted seems to just preserve the D: in the example I gave. This is good enough to make my test case work, but won't fix all uses, I think. - Dan Sylvain Petreolle wrote: What do you mean by sometimes ?

argv[0] needs to be an absolute path

2003-01-01 Thread Dan Kegel
The C program main(int argc, char **argv) { puts(argv[0]); } outputs an absolute path on Windows, but sometimes outputs a relative path on Wine. This causes the commandline $ wine d:setup to fail to find its files properly if it uses the basename of argv[0]. One example of this is msvc4.0