[MSVCRT][CRT]: Improvements/fixes over popen(), from Wine code and ported by Andreas...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 17 Jul 2017 16:11:18 +0000 (16:11 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 17 Jul 2017 16:11:18 +0000 (16:11 +0000)
commit1345a5a8a702d76bf3199df9edaa79e65ace14f8
tree0c3b02c2dabc9130442c41722173271ff470af36
parent73375485df914fa8eb61db8e30ddcb90b0818f64
[MSVCRT][CRT]: Improvements/fixes over popen(), from Wine code and ported by Andreas Maier: the popen_handles array, which is used in _pclose, was never filled. _popen correctly fills it now.
Should fix returned codes by popen() and pclose(), which are functions that are called by windres, and this latter expects them to succeed. This was not the case before, in ROS, and therefore
trying to e.g. compile ROS within ROS failed from time to time with windres throwing the error that "preprocessing failed".
CORE-11568 #resolve

svn path=/trunk/; revision=75365
reactos/dll/win32/crtdll/dllmain.c
reactos/dll/win32/msvcrt/dllmain.c
reactos/dll/win32/msvcrt20/msvcrt20.c
reactos/dll/win32/msvcrt40/msvcrt40.c
reactos/sdk/lib/crt/include/internal/popen.h [new file with mode: 0644]
reactos/sdk/lib/crt/include/internal/wine/msvcrt.h
reactos/sdk/lib/crt/precomp.h
reactos/sdk/lib/crt/stdio/popen.c