mshtml: 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:31:31 -05:00
parent 38b1a1afca
commit d7ef6cbbf9
1 changed files with 1 additions and 1 deletions

View File

@ -728,7 +728,7 @@ static void parse_content_type(nsChannelBSC *This, const WCHAR *value)
ptr++;
len = strlenW(value);
if(ptr + ARRAY_SIZE(charsetW) < value+len && !memicmpW(ptr, charsetW, ARRAY_SIZE(charsetW))) {
if(ptr + ARRAY_SIZE(charsetW) < value+len && !strncmpiW(ptr, charsetW, ARRAY_SIZE(charsetW))) {
size_t charset_len, lena;
nsACString charset_str;
const WCHAR *charset;