summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--windows/async_wrapper.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/windows/async_wrapper.ps1 b/windows/async_wrapper.ps1
index 6463ef3f..a79a6d6b 100644
--- a/windows/async_wrapper.ps1
+++ b/windows/async_wrapper.ps1
@@ -397,7 +397,7 @@ Function Start-Watchdog {
$exec_cmd = [Ansible.Async.NativeProcessUtil]::SearchPath("powershell.exe")
$exec_args = "`"$exec_cmd`" -NoProfile -ExecutionPolicy Bypass -EncodedCommand $encoded_command"
- If(-not [Ansible.Async.NativeProcessUtil]::CreateProcess($exec_cmd, $exec_args, [IntPtr]::Zero, [IntPtr]::Zero, $true, $pstartup_flags, [IntPtr]::Zero, $env:windir, [ref]$si, [ref]$pi)) {
+ If(-not [Ansible.Async.NativeProcessUtil]::CreateProcess($exec_cmd, $exec_args, [IntPtr]::Zero, [IntPtr]::Zero, $false, $pstartup_flags, [IntPtr]::Zero, $env:windir, [ref]$si, [ref]$pi)) {
#throw New-Object System.ComponentModel.Win32Exception
throw "create bang $([System.Runtime.InteropServices.Marshal]::GetLastWin32Error())"
}