#2 msvcrt: Correct search strategy for the exec/spawn functions.
Hans Leidekker
hans at it.vu.nl
Tue Jan 1 09:24:38 CST 2008
Dymola calls _spawnvp("as") with PATH set to
C:\\PROG~FBU\\Dymola\\egcs\\bin and expects
C:\\PROG~FBU\\Dymola\\egcs\\bin\\as.exe to get launched.
This works with native msvcrt but builtin only tries with
.exe appended after _searchenv turned up nothing and ends up
calling CreateProcess on just "as.exe", which fails.
A trace with native msvcrt reveals that _spawnvp tries .com,
.exe, .bat and .cmd as extensions, in that order, searching the
current directory first and then any directory specified in PATH.
See http://bugs.winehq.org/show_bug.cgi?id=10822
-Hans
Changelog
Correct search strategy for the exec/spawn functions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvcrt_process_c_02.diff
Type: text/x-diff
Size: 9964 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080101/23931698/attachment.diff
More information about the wine-patches
mailing list