mirror of
https://github.com/golang/go
synced 2024-11-21 22:24:40 -07:00
syscall: fix inverse checking of result code on windows.
R=golang-dev, brainman, rsc CC=golang-dev https://golang.org/cl/4179049
This commit is contained in:
parent
1c5ed263ae
commit
186b07afff
@ -185,7 +185,7 @@ func StartProcess(argv0 string, argv []string, envv []string, dir string, fd []i
|
||||
startupInfo,
|
||||
processInfo)
|
||||
|
||||
if err != 0 {
|
||||
if err == 0 {
|
||||
pid = int(processInfo.ProcessId)
|
||||
handle = int(processInfo.Process)
|
||||
CloseHandle(processInfo.Thread)
|
||||
|
Loading…
Reference in New Issue
Block a user