mshtml: Use case insensitive comparition in parse_ua_compatible.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-05-30 19:49:41 +02:00 committed by Alexandre Julliard
parent 0250693354
commit c36bbc352e
2 changed files with 3 additions and 2 deletions

View File

@ -393,11 +393,12 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
{
int v = 0;
static const WCHAR ie_eqW[] = {'I','E','='};
static const WCHAR edgeW[] = {'e','d','g','e',0};
TRACE("%s\n", debugstr_w(p));
if(p[0] != 'I' || p[1] != 'E' || p[2] != '=')
if(strncmpiW(ie_eqW, p, sizeof(ie_eqW)/sizeof(WCHAR)))
return FALSE;
p += 3;

View File

@ -3425,7 +3425,7 @@ static void run_script_as_http_with_mode(const char *script, const char *opt, co
" </body>\n"
"</html>\n",
document_mode ? "<!DOCTYPE html>\n" : "",
document_mode ? "<meta http-equiv=\"x-ua-compatible\" content=\"IE=" : "",
document_mode ? "<meta http-equiv=\"x-ua-compatible\" content=\"Ie=" : "",
document_mode ? document_mode : "",
document_mode ? "\">" : "",
script);