mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 05:23:20 +00:00
Fix error check code in osproc (#13090) [backport]
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