Inline unkcall.
This commit is contained in:
parent
7f62cdabe7
commit
619a8f8377
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue