#9 msvcrt: Correct search strategy for the exec/spawn functions.

Hans Leidekker hans at it.vu.nl
Mon Jan 7 07:24:02 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_23.diff
Type: text/x-diff
Size: 19857 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080107/1701da91/attachment.diff 


More information about the wine-patches mailing list