mirror of
https://github.com/rclone/rclone.git
synced 2024-12-02 13:25:51 +01:00
16 lines
290 B
Go
16 lines
290 B
Go
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)))
|
|
}
|
|
}
|