=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: cryptdlg: Fix copy-paste error ( coverity).

Alexandre Julliard julliard at winehq.org
Wed Oct 24 13:39:41 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Oct 24 19:27:00 2012 +0200

cryptdlg: Fix copy-paste error (coverity).

---

 dlls/cryptdlg/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/cryptdlg/main.c b/dlls/cryptdlg/main.c
index 04311fd..9124541 100644
--- a/dlls/cryptdlg/main.c
+++ b/dlls/cryptdlg/main.c
@@ -276,7 +276,7 @@ static HCERTCHAINENGINE CRYPTDLG_MakeEngine(CERT_VERIFY_CERTIFICATE_TRUST *cert)
     {
         trust = CertOpenStore(CERT_STORE_PROV_COLLECTION, 0, 0,
          CERT_STORE_CREATE_NEW_FLAG, NULL);
-        if (root)
+        if (trust)
         {
             for (i = 0; i < cert->cTrustStores; i++)
                 CertAddStoreToCollection(trust, cert->rghstoreTrust[i], 0, 0);




More information about the wine-cvs mailing list