From 17ddc7e894c0d0d706199f1d41d5d25ffef19e46 Mon Sep 17 00:00:00 2001 From: Tomohiro Date: Fri, 10 Jan 2020 02:00:41 +0900 Subject: [PATCH] Fix error check code in osproc (#13090) [backport] (cherry picked from commit a33b72af4960073b0dca95af3b430baade745b0b) --- lib/pure/osproc.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index d24740a165744..4608ffb516cc2 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)