Module: wine Branch: master Commit: f7322187fe6876b20be4cc20d9224c7e04dde94e URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7322187fe6876b20be4cc20d9...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sat Aug 16 14:00:21 2014 +0400
urlmon: Remove duplicated check (PVS-Studio).
---
dlls/urlmon/sec_mgr.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/urlmon/sec_mgr.c b/dlls/urlmon/sec_mgr.c index 5c145ae..e1c7ec8 100644 --- a/dlls/urlmon/sec_mgr.c +++ b/dlls/urlmon/sec_mgr.c @@ -241,11 +241,9 @@ static BOOL matches_domain_pattern(LPCWSTR pattern, LPCWSTR str, BOOL implicit_w * * Doesn't match the pattern. */ - if(str_len > pattern_len) { - if(str[str_len-pattern_len-1] == '.' && !strcmpiW(str+(str_len-pattern_len), pattern)) { - matches = TRUE; - *matched = str+(str_len-pattern_len); - } + if(str[str_len-pattern_len-1] == '.' && !strcmpiW(str+(str_len-pattern_len), pattern)) { + matches = TRUE; + *matched = str+(str_len-pattern_len); } } else { /* The pattern doesn't have an implicit wildcard, or an explicit wildcard,