Juan Lang : crypt32: Fix return value in error cases (clang).

Alexandre Julliard julliard at winehq.org
Wed Feb 16 11:14:11 CST 2011


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Feb 15 11:12:41 2011 -0800

crypt32: Fix return value in error cases (clang).

---

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

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index d7c10b3..ca76cef 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -3213,7 +3213,8 @@ static BOOL match_domain_component(LPCWSTR allowed_component, DWORD allowed_len,
                 break;
             }
         }
-        matches = tolowerW(*allowed_ptr) == tolowerW(*server_ptr);
+        if (matches)
+            matches = tolowerW(*allowed_ptr) == tolowerW(*server_ptr);
     }
     if (matches && server_ptr - server_component < server_len)
     {




More information about the wine-cvs mailing list