summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-12-24 11:45:37 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-12-24 17:33:27 +0100
commit8f17a70fe1d8687cededdf3af2e876787617d17e (patch)
tree22fe2ee3a3da7c39ec66e44f675d727f54a13516 /lib/pure
parent9faf00598f72c0725cb44921294f125801405eb0 (diff)
downloadNim-8f17a70fe1d8687cededdf3af2e876787617d17e.tar.gz
ported osproc.nim to ARC
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 4bf13ceb9..973ddd47e 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: nil
+        if e.str.isNil: newWideCString(nil)
         else: newWideCString(e.str, e.len)
       var wwd = newWideCString(wd)
       var flags = NORMAL_PRIORITY_CLASS or CREATE_UNICODE_ENVIRONMENT