VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-28 17:27:12 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-28 23:32:39 (GMT)
commit7702095ed06c0f12e8706deb4f435dd5a7de3cd3 (patch)
tree001958630a91b06d3304e8b3e84299c2b7d058ae
parenta5cba003578beda7331e5c631adad4faeab07cda (diff)
downloadVeraCrypt-7702095ed06c0f12e8706deb4f435dd5a7de3cd3.zip
VeraCrypt-7702095ed06c0f12e8706deb4f435dd5a7de3cd3.tar.gz
Windows: Don't use HRESULT macros SUCCEEDED to check if WinVerifyTrust succeeded. Instead, check the return value for equality to zero.
-rw-r--r--src/Common/Dlgcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 0b9a710..d426f02 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -13887,7 +13887,7 @@ BOOL VerifyModuleSignature (const wchar_t* path)
WVTData.dwProvFlags = WTD_REVOCATION_CHECK_NONE | WTD_CACHE_ONLY_URL_RETRIEVAL;
hResult = WinVerifyTrustFn(0, &gActionID, &WVTData);
- if (SUCCEEDED (hResult))
+ if (0 == hResult)
{
PCRYPT_PROVIDER_DATA pProviderData = WTHelperProvDataFromStateDataFn (WVTData.hWVTStateData);
if (pProviderData)