mshtml: Use UTF-8 encoding in is_gecko_path.

This commit is contained in:
Jacek Caban 2012-11-27 14:53:29 +01:00 committed by Alexandre Julliard
parent ac41380b94
commit fbeb1b4acf
1 changed files with 2 additions and 2 deletions

View File

@ -1100,8 +1100,8 @@ BOOL is_gecko_path(const char *path)
WCHAR *buf, *ptr;
BOOL ret;
buf = heap_strdupAtoW(path);
if(strlenW(buf) < gecko_path_len)
buf = heap_strdupUtoW(path);
if(!buf || strlenW(buf) < gecko_path_len)
return FALSE;
buf[gecko_path_len] = 0;