mirror of
https://github.com/containers/skopeo.git
synced 2025-08-28 19:11:58 +00:00
Bumps [github.com/containers/buildah](https://github.com/containers/buildah) from 1.11.4 to 1.11.5. - [Release notes](https://github.com/containers/buildah/releases) - [Changelog](https://github.com/containers/buildah/blob/master/CHANGELOG.md) - [Commits](https://github.com/containers/buildah/compare/v1.11.4...v1.11.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
24 lines
567 B
Go
24 lines
567 B
Go
package interop
|
|
|
|
import (
|
|
"syscall"
|
|
"unsafe"
|
|
)
|
|
|
|
//go:generate go run ../../mksyscall_windows.go -output zsyscall_windows.go interop.go
|
|
|
|
//sys coTaskMemFree(buffer unsafe.Pointer) = api_ms_win_core_com_l1_1_0.CoTaskMemFree
|
|
|
|
func ConvertAndFreeCoTaskMemString(buffer *uint16) string {
|
|
str := syscall.UTF16ToString((*[1 << 29]uint16)(unsafe.Pointer(buffer))[:])
|
|
coTaskMemFree(unsafe.Pointer(buffer))
|
|
return str
|
|
}
|
|
|
|
func Win32FromHresult(hr uintptr) syscall.Errno {
|
|
if hr&0x1fff0000 == 0x00070000 {
|
|
return syscall.Errno(hr & 0xffff)
|
|
}
|
|
return syscall.Errno(hr)
|
|
}
|