From a4e88cb64402e602ab1a61f859bc8eaafdc5c139 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 30 Aug 2007 17:51:45 -0700 Subject: [PATCH] crypt32: Check chain root's trusted status regardless of whether its signature is valid. --- dlls/crypt32/chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index 65840857fcf..b87eee10ccd 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -367,7 +367,7 @@ static BOOL CRYPT_BuildSimpleChain(HCERTCHAINENGINE hChainEngine, CERT_TRUST_IS_NOT_SIGNATURE_VALID; } } - if (ret) + if (CRYPT_IsCertificateSelfSigned(root)) { BYTE hash[20]; DWORD size = sizeof(hash);