urlmon: Remove duplicated check (PVS-Studio).
This commit is contained in:
parent
2ee84d5ae2
commit
f7322187fe
|
@ -241,12 +241,10 @@ 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);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* The pattern doesn't have an implicit wildcard, or an explicit wildcard,
|
||||
* so 'str' has to be an exact match to the 'pattern'.
|
||||
|
|
Loading…
Reference in New Issue