diff options
author | Tomohiro <gpuppur@gmail.com> | 2020-01-10 02:00:41 +0900 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-01-09 18:00:41 +0100 |
commit | a33b72af4960073b0dca95af3b430baade745b0b (patch) | |
tree | 1f82005869dc85526faef6b4a68aad5ca07a8b30 | |
parent | bb7273bc471da56a17b9fc10dafda71923a473ff (diff) | |
download | Nim-a33b72af4960073b0dca95af3b430baade745b0b.tar.gz |
Fix error check code in osproc (#13090) [backport]
-rw-r--r-- | lib/pure/osproc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index aa4eb187b..9b11d440b 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -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) |