From 7702095ed06c0f12e8706deb4f435dd5a7de3cd3 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 28 Jul 2020 19:27:12 +0200 Subject: [PATCH] Windows: Don't use HRESULT macros SUCCEEDED to check if WinVerifyTrust succeeded. Instead, check the return value for equality to zero. --- src/Common/Dlgcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)