summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-12-24 13:01:11 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-12-24 17:33:27 +0100
commit3516947642b57326e009a4f14c892978aa690387 (patch)
tree83949e6c76c402a23a1ac264f575135e31b05f52 /lib/pure
parent5aa7b1a44b869303e09e0ab0df6a63c2171a1806 (diff)
downloadNim-3516947642b57326e009a4f14c892978aa690387.tar.gz
osproc: fixes regression
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/osproc.nim2
1 files changed, 1 insertions, 1 deletions
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