Commit 0c56639a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

advapi32: Perform a case-insensitive match on the credential target name.

parent 2245acf7
...@@ -746,7 +746,7 @@ static BOOL registry_credential_matches_filter(HKEY hkeyCred, LPCWSTR filter) ...@@ -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 ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment