aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--version/official_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/version/official_windows.go b/version/official_windows.go
index 5f8ea731..0ebdb8d8 100644
--- a/version/official_windows.go
+++ b/version/official_windows.go
@@ -47,7 +47,7 @@ func VerifyAuthenticode(path string) bool {
StateAction: wintrust.WTD_STATEACTION_VERIFY,
FileOrCatalogOrBlobOrSgnrOrCert: uintptr(unsafe.Pointer(file)),
}
- return wintrust.WinVerifyTrust(0, &wintrust.WINTRUST_ACTION_GENERIC_VERIFY_V2, data) == nil
+ return wintrust.WinVerifyTrust(windows.InvalidHandle, &wintrust.WINTRUST_ACTION_GENERIC_VERIFY_V2, data) == nil
}
// This is an easily by-passable check, which doesn't serve a security purpose but mostly just a low-grade