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 <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Quim Muntal <[email protected]> Reviewed-by: David Chase <[email protected]>
- Loading branch information