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:
Mounir IDRASSI 2020-07-28 19:27:12 +02:00
parent a5cba00357
commit 7702095ed0
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -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)