crypt32: Always set pPolicyStatus->dwError.
This commit is contained in:
parent
6b8ee0e41f
commit
7a0905128d
@ -1447,6 +1447,8 @@ static BOOL WINAPI verify_base_policy(LPCSTR szPolicyOID,
|
|||||||
/* For a cyclic chain, which element is a cycle isn't meaningful */
|
/* For a cyclic chain, which element is a cycle isn't meaningful */
|
||||||
pPolicyStatus->lElementIndex = -1;
|
pPolicyStatus->lElementIndex = -1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
pPolicyStatus->dwError = NO_ERROR;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1520,6 +1522,8 @@ static BOOL WINAPI verify_basic_constraints_policy(LPCSTR szPolicyOID,
|
|||||||
CERT_TRUST_INVALID_BASIC_CONSTRAINTS, &pPolicyStatus->lChainIndex,
|
CERT_TRUST_INVALID_BASIC_CONSTRAINTS, &pPolicyStatus->lChainIndex,
|
||||||
&pPolicyStatus->lElementIndex);
|
&pPolicyStatus->lElementIndex);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
pPolicyStatus->dwError = NO_ERROR;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user