diff --git a/root_windows.go b/root_windows.go index b8e27a9..13073dc 100644 --- a/root_windows.go +++ b/root_windows.go @@ -12,8 +12,8 @@ import ( ) func loadStore(roots *x509.CertPool, name string) { - store, errno := syscall.CertOpenSystemStore(syscall.InvalidHandle, syscall.StringToUTF16Ptr(name)) - if errno != 0 { + store, err := syscall.CertOpenSystemStore(syscall.InvalidHandle, syscall.StringToUTF16Ptr(name)) + if err != nil { return }