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
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
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
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
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 ?
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