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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-05-07 11:30:48 -05:00
parent 6e0a5b81a4
commit d9db7faf6c
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ static HRESULT do_preprocess(const Registrar *This, LPCOLESTR data, strbuf *buf)
}else {
for(rep_iter = This->rep; rep_iter; rep_iter = rep_iter->next) {
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;
}
if(!rep_iter) {