Re: msvcrt: translate name to locate program
Michael Wu <flamingice(a)sourmilk.net> writes:
if (args) { - ret = msvcrt_spawn(flags, fullname, args, envs); + if (SearchPathA(NULL, name, exeA, MAX_PATH, fullname, NULL)) + ret = msvcrt_spawn(flags, fullname, args, envs);
That doesn't look right, spawnve is not supposed to search the path. -- Alexandre Julliard julliard(a)winehq.org
On Monday 24 January 2005 10:14 am, you wrote:
Michael Wu <flamingice(a)sourmilk.net> writes:
if (args) { - ret = msvcrt_spawn(flags, fullname, args, envs); + if (SearchPathA(NULL, name, exeA, MAX_PATH, fullname, NULL)) + ret = msvcrt_spawn(flags, fullname, args, envs);
That doesn't look right, spawnve is not supposed to search the path. Opps.
Would passing an empty path (eg. ".") to the function solve the problem? SearchPath does a lot of what spawn needs to find the real filename, and I'd like to avoid duplicating what SearchPath does. -Michael Wu
Michael Wu <flamingice(a)sourmilk.net> writes:
Would passing an empty path (eg. ".") to the function solve the problem? SearchPath does a lot of what spawn needs to find the real filename, and I'd like to avoid duplicating what SearchPath does.
If all you need is to append ".exe" calling SearchPath doesn't seem necessary at all. -- Alexandre Julliard julliard(a)winehq.org
participants (3)
-
Alexandre Julliard -
Alexandre Julliard -
Michael Wu