mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
Fix error check code in osproc (#13090) [backport]
(cherry picked from commit a33b72af49)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user