diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index cd70d499b16..f52ac0c3c63 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -304,7 +304,7 @@ static BOOL CRYPT_AddCertToSimpleChain(PCertificateChainEngine engine, chain->rgpElement[chain->cElement - 2]->TrustStatus.dwInfoStatus = subjectInfoStatus; /* FIXME: initialize the rest of element */ - if (chain->cElement % engine->CycleDetectionModulus) + if (!(chain->cElement % engine->CycleDetectionModulus)) CRYPT_CheckSimpleChainForCycles(chain); CRYPT_CombineTrustStatus(&chain->TrustStatus, &element->TrustStatus);