From 8f17a70fe1d8687cededdf3af2e876787617d17e Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 24 Dec 2019 11:45:37 +0100 Subject: [PATCH] ported osproc.nim to ARC --- 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 4bf13ceb96..973ddd47e9 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