Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows/svc: do not pass theService to windows.RegisterServiceCtrlHan…
…dlerEx windows.RegisterServiceCtrlHandlerEx context parameter is uintptr, so it is unsafe to pass pointers in that parameter. Use theService global variable in ctlHandler function instead. Fixes golang/go#67437 Change-Id: I84c910eaa354603c2a5114421cd61788cb40b86f Reviewed-on: https://go-review.googlesource.com/c/sys/+/591475 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Quim Muntal <quimmuntal@gmail.com> Reviewed-by: David Chase <drchase@google.com>
- Loading branch information