mirror of
https://github.com/containers/podman.git
synced 2025-10-19 12:12:36 +08:00
fix(deps): update module github.com/containers/libhvee to v0.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
8
vendor/github.com/containers/libhvee/pkg/wmiext/service.go
generated
vendored
8
vendor/github.com/containers/libhvee/pkg/wmiext/service.go
generated
vendored
@ -62,6 +62,7 @@ func connectService(namespace string) (*Service, error) {
|
||||
var err error
|
||||
var res uintptr
|
||||
var strResource *uint16
|
||||
var strLocale *uint16
|
||||
var service *ole.IUnknown
|
||||
|
||||
loc := fmt.Sprintf(`\\.\%s`, namespace)
|
||||
@ -70,6 +71,11 @@ func connectService(namespace string) (*Service, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Connect with en_US LCID since we do pattern matching against English key values
|
||||
if strLocale, err = syscall.UTF16PtrFromString("MS_409"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
myVTable := (*IWbemLocatorVtbl)(unsafe.Pointer(wmiWbemLocator.RawVTable))
|
||||
res, _, _ = syscall.SyscallN(
|
||||
myVTable.ConnectServer, // IWbemLocator::ConnectServer(
|
||||
@ -77,7 +83,7 @@ func connectService(namespace string) (*Service, error) {
|
||||
uintptr(unsafe.Pointer(strResource)), // [in] const BSTR strNetworkResource,
|
||||
uintptr(0), // [in] const BSTR strUser,
|
||||
uintptr(0), // [in] const BSTR strPassword,
|
||||
uintptr(0), // [in] const BSTR strLocale,
|
||||
uintptr(unsafe.Pointer(strLocale)), // [in] const BSTR strLocale,
|
||||
uintptr(WBEM_FLAG_CONNECT_USE_MAX_WAIT), // [in] long lSecurityFlags,
|
||||
uintptr(0), // [in] const BSTR strAuthority,
|
||||
uintptr(0), // [in] IWbemContext *pCtx,
|
||||
|
Reference in New Issue
Block a user