osproc: fixes regression

This commit is contained in:
Araq 2019-12-24 13:01:11 +01:00 • committed by Andreas Rumpf
commit 3516947642

View file

@ -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