mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
The documentation [1] says "The service status handle does not have to be closed." That makes it seem like it's optional. But actually, closing it raises a user exception, because it's not a legitimate handle to close. This commit also adds the right go build comments with a `go fmt` pass. [1] https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nf-winsvc-registerservicectrlhandlerexa Change-Id: Ibf67c0e8d94c87068720472009b24cecdfda6519 Reviewed-on: https://go-review.googlesource.com/c/sys/+/357250 Trust: Jason A. Donenfeld <Jason@zx2c4.com> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>