Fix error check code in osproc (#13090) [backport]

(cherry picked from commit a33b72af49)
This commit is contained in:
Tomohiro
2020-01-10 02:00:41 +09:00
committed by narimiran
parent 26331a9005
commit 17ddc7e894

View File

@@ -539,7 +539,7 @@ when defined(Windows) and not defined(useNimRtl):
FILE_ATTRIBUTE_NORMAL,
0 # no template file for OPEN_EXISTING
)
if si.hStdOutput == INVALID_HANDLE_VALUE:
if si.hStdInput == INVALID_HANDLE_VALUE:
raiseOSError(osLastError())
stdin = myDup(pipeIn, 0)