urlmon: Remove duplicated check (PVS-Studio).

This commit is contained in:
Nikolay Sivov 2014-08-16 14:00:21 +04:00 committed by Alexandre Julliard
parent 2ee84d5ae2
commit f7322187fe
1 changed files with 3 additions and 5 deletions

View File

@ -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,