From: Yasuhiro Matsumoto Date: Wed, 16 Feb 2011 05:07:04 +0000 (+1100) Subject: syscall: fix inverse checking of result code on windows. X-Git-Tag: weekly.2011-02-24~100 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=186b07afff967e79aa408155a02ac4e0b822c053;p=gostls13.git syscall: fix inverse checking of result code on windows. R=golang-dev, brainman, rsc CC=golang-dev https://golang.org/cl/4179049 --- diff --git a/src/pkg/syscall/exec_windows.go b/src/pkg/syscall/exec_windows.go index 7256c3ae3f..73c3c8624d 100644 --- a/src/pkg/syscall/exec_windows.go +++ b/src/pkg/syscall/exec_windows.go @@ -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)