Skip to content

Commit a33b72a

Browse files
demotomohiroAraq
authored andcommitted
Fix error check code in osproc (#13090) [backport]
1 parent bb7273b commit a33b72a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pure/osproc.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ when defined(Windows) and not defined(useNimRtl):
539539
FILE_ATTRIBUTE_NORMAL,
540540
0 # no template file for OPEN_EXISTING
541541
)
542-
if si.hStdOutput == INVALID_HANDLE_VALUE:
542+
if si.hStdInput == INVALID_HANDLE_VALUE:
543543
raiseOSError(osLastError())
544544

545545
stdin = myDup(pipeIn, 0)

0 commit comments

Comments
 (0)