Skip to content

Commit

Permalink
Fix error check code in osproc (#13090) [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
demotomohiro authored and Araq committed Jan 9, 2020
1 parent bb7273b commit a33b72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/osproc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a33b72a

Please sign in to comment.