1
0
mirror of https://github.com/golang/go synced 2024-10-02 04:18:33 -06:00

Fix Windows build; ErrorString->NewError

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4634080
This commit is contained in:
Brad Fitzpatrick 2011-06-22 11:33:30 -07:00
parent 712fb6dcd3
commit 5dfdccf2b0

View File

@ -17,7 +17,7 @@ func (p *Process) Wait(options int) (w *Waitmsg, err Error) {
case syscall.WAIT_FAILED:
return nil, NewSyscallError("WaitForSingleObject", e)
default:
return nil, ErrorString("os: unexpected result from WaitForSingleObject")
return nil, NewError("os: unexpected result from WaitForSingleObject")
}
var ec uint32
e = syscall.GetExitCodeProcess(int32(p.handle), &ec)