Fix error check code in osproc (#13090) [backport]
This commit is contained in:
parent
bb7273bc47
commit
a33b72af49
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue