Skip to content

Commit

Permalink
Fix error check code in osproc (nim-lang#13090) [backport]
Browse files Browse the repository at this point in the history
(cherry picked from commit a33b72a)
  • Loading branch information
demotomohiro authored and narimiran committed Jan 14, 2020
1 parent 26331a9 commit 17ddc7e
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 17ddc7e

Please sign in to comment.