1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:44:39 -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:
Yasuhiro Matsumoto 2011-02-16 16:07:04 +11:00 committed by Alex Brainman
parent 1c5ed263ae
commit 186b07afff

View File

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