Fedora 33 and rawhide got an updated version of the azblob library. Sadly, it introduced a non-compatible API change. This commit does the same thing asa67baf5adid for kolo/xmlrpc: We now have two wrappers around the affected part of the API. Fedora 32 uses the wrapper around the old API, whereas Fedora 33 and 34 (and RHEL with its vendored deps) use the wrapper around the new API. The switch is implemented using go build flags and spec file magic. Seea67baf5afor more thoughts. Also, there's v0.11.1-0.20201209121048-6df5d9af221d in go.mod, why? The maintainers of azblob probably tagged a wrong commit with v0.12.0 which breaks go. The long v0.11.1-.* version is basically the proper v0.12.0 commit. See https://github.com/Azure/azure-storage-blob-go/issues/236 for more information. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
19 lines
337 B
Go
19 lines
337 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)))
|
|
}
|
|
}
|
|
|
|
func rTrue(r uintptr) bool {
|
|
return r == 1
|
|
}
|