From 3516947642b57326e009a4f14c892978aa690387 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 24 Dec 2019 13:01:11 +0100 Subject: [PATCH] osproc: fixes regression --- 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 973ddd47e..aa4eb187b 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -617,7 +617,7 @@ when defined(Windows) and not defined(useNimRtl): when useWinUnicode: var tmp = newWideCString(cmdl) var ee = - if e.str.isNil: newWideCString(nil) + if e.str.isNil: newWideCString(cstring(nil)) else: newWideCString(e.str, e.len) var wwd = newWideCString(wd) var flags = NORMAL_PRIORITY_CLASS or CREATE_UNICODE_ENVIRONMENT