mshtml: Use UTF-8 encoding in is_gecko_path.
This commit is contained in:
parent
ac41380b94
commit
fbeb1b4acf
|
@ -1100,8 +1100,8 @@ BOOL is_gecko_path(const char *path)
|
||||||
WCHAR *buf, *ptr;
|
WCHAR *buf, *ptr;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
buf = heap_strdupAtoW(path);
|
buf = heap_strdupUtoW(path);
|
||||||
if(strlenW(buf) < gecko_path_len)
|
if(!buf || strlenW(buf) < gecko_path_len)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
buf[gecko_path_len] = 0;
|
buf[gecko_path_len] = 0;
|
||||||
|
|
Loading…
Reference in New Issue