Commit d9db7faf authored by Alexandre Julliard's avatar Alexandre Julliard

atl: Use strncmpiW instead of memicmpW for strings without embedded nulls.

parent 6e0a5b81
...@@ -161,7 +161,7 @@ static HRESULT do_preprocess(const Registrar *This, LPCOLESTR data, strbuf *buf) ...@@ -161,7 +161,7 @@ static HRESULT do_preprocess(const Registrar *This, LPCOLESTR data, strbuf *buf)
}else { }else {
for(rep_iter = This->rep; rep_iter; rep_iter = rep_iter->next) { for(rep_iter = This->rep; rep_iter; rep_iter = rep_iter->next) {
if(rep_iter->key_len == iter-iter2 if(rep_iter->key_len == iter-iter2
&& !memicmpW(iter2, rep_iter->key, rep_iter->key_len)) && !strncmpiW(iter2, rep_iter->key, rep_iter->key_len))
break; break;
} }
if(!rep_iter) { if(!rep_iter) {
......
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