diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-07-28 19:27:12 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-07-29 01:32:39 +0200 |
commit | 7702095ed06c0f12e8706deb4f435dd5a7de3cd3 (patch) | |
tree | 001958630a91b06d3304e8b3e84299c2b7d058ae /src | |
parent | a5cba003578beda7331e5c631adad4faeab07cda (diff) | |
download | VeraCrypt-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')
-rw-r--r-- | src/Common/Dlgcode.c | 2 |
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) |