Commit 7a090512 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Always set pPolicyStatus->dwError.

parent 6b8ee0e4
...@@ -1447,6 +1447,8 @@ static BOOL WINAPI verify_base_policy(LPCSTR szPolicyOID, ...@@ -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, ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment