Skip to content
This repository has been archived by the owner on Sep 21, 2018. It is now read-only.

Commit

Permalink
Bug 1303455 - comment 78 - don't use CreateProcessWithLogonW if no jo…
Browse files Browse the repository at this point in the history
…bs should be associated to created processes
  • Loading branch information
petemoore committed Nov 14, 2016
1 parent d62fc8a commit 8909343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subprocess/subprocess_windows.go
Expand Up @@ -137,7 +137,7 @@ func (sub *Subprocess) CreateFrozen() (*SubprocessData, error) {
si.Flags = win32.STARTF_FORCEOFFFEEDBACK | syscall.STARTF_USESHOWWINDOW
si.ShowWindow = syscall.SW_SHOWMINNOACTIVE

useCreateProcessWithLogonW := sub.NoJob || win32.IsWindows8OrGreater()
useCreateProcessWithLogonW := !sub.NoJob || win32.IsWindows8OrGreater()

if !useCreateProcessWithLogonW && sub.Options != nil && sub.Options.Desktop != "" {
si.Desktop = syscall.StringToUTF16Ptr(sub.Options.Desktop)
Expand Down

0 comments on commit 8909343

Please sign in to comment.