mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 21:23:40 +01:00
Windows: Don't use HRESULT macros SUCCEEDED to check if WinVerifyTrust succeeded. Instead, check the return value for equality to zero.
This commit is contained in:
parent
a5cba00357
commit
7702095ed0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user