Skip to content

Commit 1010540

Browse files
ElMostafaIdrassivcsjones
authored andcommitted
Fix certstore windows cmsg type error when building using go v1.18
Signed-off-by: El Mostafa IDRASSI <el-mostafa.idrassi@prestalab.net>
1 parent c8d763a commit 1010540

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

certstore/certstore_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ func (c errCode) Error() string {
637637
if cmsg == nil {
638638
return fmt.Sprintf("Error %X", int(c))
639639
}
640-
defer C.LocalFree(C.HLOCAL(cmsg))
640+
defer C.LocalFree(C.HLOCAL(unsafe.Pointer(cmsg)))
641641

642642
gomsg := C.GoString(cmsg)
643643

0 commit comments

Comments
 (0)