advapi32: Perform a case-insensitive match on the credential target name.
This commit is contained in:
parent
2245acf75a
commit
0c56639a6a
|
@ -746,7 +746,7 @@ static BOOL registry_credential_matches_filter(HKEY hkeyCred, LPCWSTR filter)
|
||||||
debugstr_w(target_name));
|
debugstr_w(target_name));
|
||||||
|
|
||||||
p = strchrW(filter, '*');
|
p = strchrW(filter, '*');
|
||||||
ret = CompareStringW(GetThreadLocale(), 0, filter,
|
ret = CompareStringW(GetThreadLocale(), NORM_IGNORECASE, filter,
|
||||||
(p && !p[1] ? p - filter : -1), target_name,
|
(p && !p[1] ? p - filter : -1), target_name,
|
||||||
(p && !p[1] ? p - filter : -1)) == CSTR_EQUAL;
|
(p && !p[1] ? p - filter : -1)) == CSTR_EQUAL;
|
||||||
|
|
||||||
|
@ -818,7 +818,7 @@ static BOOL mac_credential_matches_filter(void *data, UInt32 data_len, const WCH
|
||||||
TRACE("comparing filter %s to target name %s\n", debugstr_w(filter), debugstr_w(target_name));
|
TRACE("comparing filter %s to target name %s\n", debugstr_w(filter), debugstr_w(target_name));
|
||||||
|
|
||||||
p = strchrW(filter, '*');
|
p = strchrW(filter, '*');
|
||||||
ret = CompareStringW(GetThreadLocale(), 0, filter,
|
ret = CompareStringW(GetThreadLocale(), NORM_IGNORECASE, filter,
|
||||||
(p && !p[1] ? p - filter : -1), target_name,
|
(p && !p[1] ? p - filter : -1), target_name,
|
||||||
(p && !p[1] ? p - filter : -1)) == CSTR_EQUAL;
|
(p && !p[1] ? p - filter : -1)) == CSTR_EQUAL;
|
||||||
HeapFree(GetProcessHeap(), 0, target_name);
|
HeapFree(GetProcessHeap(), 0, target_name);
|
||||||
|
|
Loading…
Reference in New Issue