rclone/vendor/github.com/mattn/go-ieproxy/kernel32_data_windows.go

16 lines
290 B
Go
Raw Normal View History

2019-08-26 19:00:17 +02:00
package ieproxy
import (
"golang.org/x/sys/windows"
"unsafe"
)
var kernel32 = windows.NewLazySystemDLL("kernel32.dll")
var globalFree = kernel32.NewProc("GlobalFree")
func globalFreeWrapper(ptr *uint16) {
if ptr != nil {
_, _, _ = globalFree.Call(uintptr(unsafe.Pointer(ptr)))
}
}