VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-28 19:27:12 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-29 01:32:39 +0200
commit7702095ed06c0f12e8706deb4f435dd5a7de3cd3 (patch)
tree001958630a91b06d3304e8b3e84299c2b7d058ae /src/Common/Dlgcode.c
parenta5cba003578beda7331e5c631adad4faeab07cda (diff)
downloadVeraCrypt-7702095ed06c0f12e8706deb4f435dd5a7de3cd3.tar.gz
VeraCrypt-7702095ed06c0f12e8706deb4f435dd5a7de3cd3.zip
Windows: Don't use HRESULT macros SUCCEEDED to check if WinVerifyTrust succeeded. Instead, check the return value for equality to zero.
Diffstat (limited to 'src/Common/Dlgcode.c')
-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 0b9a7105..d426f02a 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)