Skip to content

Commit

Permalink
Fix certstore windows cmsg type error when building using go v1.18
Browse files Browse the repository at this point in the history
Signed-off-by: El Mostafa IDRASSI <[email protected]>
  • Loading branch information
ElMostafaIdrassi committed Jul 7, 2022
1 parent 3564e86 commit 84f3ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certstore/certstore_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ func (c errCode) Error() string {
if cmsg == nil {
return fmt.Sprintf("Error %X", int(c))
}
defer C.LocalFree(C.HLOCAL(cmsg))
defer C.LocalFree(C.HLOCAL(unsafe.Pointer(cmsg)))

gomsg := C.GoString(cmsg)

Expand Down

0 comments on commit 84f3ae3

Please sign in to comment.