Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-12 Thread Chris Morgan
MS's documentation has been found to be incorrect or misleading in the past. Adding a test to wine's regression test suite would be an ideal way of not only confirming this behavior on windows but also ensuring that wine has the correct behavior and doesn't break it in the future. Chris On T

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-12 Thread Juan Lang
--- Alexandre Julliard <[EMAIL PROTECTED]> wrote: > No, the interesting case is what happens with > CreateProcess. Launching > the app from cmd.exe doesn't tell you anything, > because you don't know > exactly what arguments cmd.exe passed to > CreateProcess. You're right, as usual :) I created a

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-12 Thread Alexandre Julliard
Juan Lang <[EMAIL PROTECTED]> writes: > This is the same executable, so it isn't a different > _CRTMainStartup. I think this supports Frank's > assertion. No, the interesting case is what happens with CreateProcess. Launching the app from cmd.exe doesn't tell you anything, because you don't know

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-12 Thread Juan Lang
Sorry, forgot to mention, under Win9x in the debugger the output is the same as under the Win2k debugger: argv[0] is c:\src\cmdlinetest\Debug\cmdlinetest.exe GetCommandLine returns "c:\src\cmdlinetest\Debug\cmdlinetest.exe" Hmm.. that contradicts what I said, doesn't it? Ain't Windows the best?

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-12 Thread Juan Lang
Okay, here's a test program: #include #include int main(int argc, const char *argv[]) { LPCSTR cmd; printf("argv[0] is %s\n", argv[0]); cmd = GetCommandLineA(); printf("GetCommandLine returns %s\n", cmd); return strcmp(argv[0], cmd); } Under Windows 2000, cmd.exe, run from

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-12 Thread Frank Schruefer
Alexandre Julliard wrote: Frank Schruefer <[EMAIL PROTECTED]> writes: -Remark in dlls/kernel/environ.c. Quote: " * WARNING: there's a Windows incompatibility lurking here ! * Win32s always includes the full path of the program file, * whereas Windows NT only returns the full file path plus arg

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-11 Thread Alexandre Julliard
Frank Schruefer <[EMAIL PROTECTED]> writes: > -Remark in dlls/kernel/environ.c. Quote: > " > * WARNING: there's a Windows incompatibility lurking here ! > * Win32s always includes the full path of the program file, > * whereas Windows NT only returns the full file path plus arguments > * i

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-11 Thread Frank Schruefer
Dmitry Timoshkov wrote: "Frank Schruefer" <[EMAIL PROTECTED]> wrote: Was this patch forgotten/rejected? Did you consider to provide a test suite as well to justify the change? Not really: It looks like there's already an existing test in dlls/kernel/tests/environ.c. This test is broken BTW *wit

Re: deliver full path by argv[0] and GetCommandLine for win9x

2004-02-09 Thread Dmitry Timoshkov
"Frank Schruefer" <[EMAIL PROTECTED]> wrote: > Was this patch forgotten/rejected? Did you consider to provide a test suite as well to justify the change? -- Dmitry.