From 186b07afff967e79aa408155a02ac4e0b822c053 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 16 Feb 2011 16:07:04 +1100 Subject: [PATCH] syscall: fix inverse checking of result code on windows. R=golang-dev, brainman, rsc CC=golang-dev https://golang.org/cl/4179049 --- src/pkg/syscall/exec_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/syscall/exec_windows.go b/src/pkg/syscall/exec_windows.go index 7256c3ae3fc..73c3c8624d5 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)