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:
parent
0250693354
commit
c36bbc352e
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue