From 619a8f8377698f7b359804509d24a34e65a68842 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Fri, 2 Dec 2022 15:11:48 +0000 Subject: [PATCH] Inline unkcall. --- internal/win/ole32.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/win/ole32.go b/internal/win/ole32.go index 6f48e37..dd8be8b 100644 --- a/internal/win/ole32.go +++ b/internal/win/ole32.go @@ -50,12 +50,7 @@ func (u *IUnknown) Release() { //go:uintptrescapes func (u *IUnknown) call(trap uintptr, a ...uintptr) (r1, r2 uintptr, lastErr error) { - return unkcall(uintptr(unsafe.Pointer(u)), trap, a...) -} - -//go:uintptrescapes -func unkcall(self, trap uintptr, a ...uintptr) (r1, r2 uintptr, lastErr error) { - return syscall.SyscallN(trap, append([]uintptr{self}, a...)...) + return syscall.SyscallN(trap, append([]uintptr{uintptr(unsafe.Pointer(u))}, a...)...) } // https://github.com/wine-mirror/wine/blob/master/include/objidl.idl