Juan Lang : crypt32: Always set pPolicyStatus->dwError.

Alexandre Julliard julliard at winehq.org
Wed Oct 17 09:05:24 CDT 2007


Module: wine
Branch: master
Commit: 7a0905128d9ba3b9f52483eccb16be71e53ccb34
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7a0905128d9ba3b9f52483eccb16be71e53ccb34

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Oct 16 08:39:53 2007 -0700

crypt32: Always set pPolicyStatus->dwError.

---

 dlls/crypt32/chain.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index a64d951..ff555bb 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -1447,6 +1447,8 @@ static BOOL WINAPI verify_base_policy(LPCSTR szPolicyOID,
         /* For a cyclic chain, which element is a cycle isn't meaningful */
         pPolicyStatus->lElementIndex = -1;
     }
+    else
+        pPolicyStatus->dwError = NO_ERROR;
     return TRUE;
 }
 
@@ -1520,6 +1522,8 @@ static BOOL WINAPI verify_basic_constraints_policy(LPCSTR szPolicyOID,
          CERT_TRUST_INVALID_BASIC_CONSTRAINTS, &pPolicyStatus->lChainIndex,
          &pPolicyStatus->lElementIndex);
     }
+    else
+        pPolicyStatus->dwError = NO_ERROR;
     return TRUE;
 }
 




More information about the wine-cvs mailing list