mingw's windres

Eric Pouech pouech-eric at wanadoo.fr
Thu Jul 14 12:38:31 CDT 2005


Juan reported some issues in (unix) console handling with windres
it turns out that windres tries to run gcc (as a preprocessor), but thru the 
interpreter defined in COMSPEC, and passing the input / output streams in 
msvcrt's handles' inheritance block
As in Wine COMSPEC points to wcmd, wcmd wasn't correctly passing those streams 
to gcc as wcmd isn't using the msvcrt (hence, not it's handles's inheritance block)
to work around this, this patch adds the ability, when wcmd's parent passes a 
handles' inheritance block to wcmd, to reuse that block for any child that wcmd 
creates (the details are a bit more complicated, as wcmd can override the 
streams, like when invoked with "wcmd /c foo > bar").

A+
-- 
Eric Pouech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wcmd_msvcrt.diff
Type: text/x-patch
Size: 3939 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050714/f03cdbe6/wcmd_msvcrt.bin


More information about the wine-patches mailing list