mshtml: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
38b1a1afca
commit
d7ef6cbbf9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue