From b518c298ac9dc94b6ac0757394f50d10c5dfa25a Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 12 Jul 2016 17:09:20 +1000 Subject: [PATCH] windows: use //go:uintptrescapes comment CL 24551 introduced //go:uintptrescapes comment to make syscall.Proc.Call and syscall.LazyProc.Call parameters escape. Use new comment in this package too. Updates golang/go#16035. Change-Id: I57ec3b4778195ca4a1ce9a8eec331f0f69285926 Reviewed-on: https://go-review.googlesource.com/24870 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- windows/dll_windows.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/windows/dll_windows.go b/windows/dll_windows.go index 5f110679..0f620467 100644 --- a/windows/dll_windows.go +++ b/windows/dll_windows.go @@ -114,6 +114,8 @@ func (p *Proc) Addr() uintptr { return p.addr } +//go:uintptrescapes + // Call executes procedure p with arguments a. It will panic, if more then 15 arguments // are supplied. // @@ -293,6 +295,8 @@ func (p *LazyProc) Addr() uintptr { return p.proc.Addr() } +//go:uintptrescapes + // Call executes procedure p with arguments a. It will panic, if more then 15 arguments // are supplied. //