Module: wine Branch: master Commit: bcd14a1822e29c40b972a38df6a36ec2b6ea6779 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bcd14a1822e29c40b972a38df6...
Author: Juan Lang juan.lang@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) {