Commit 46827308 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed handling escaped paths in is_gecko_path.

parent 5068bdb6
......@@ -29,6 +29,7 @@
#include "winreg.h"
#include "ole2.h"
#include "shlobj.h"
#include "shlwapi.h"
#include "wine/debug.h"
......@@ -1106,12 +1107,14 @@ BOOL is_gecko_path(const char *path)
if(!buf || strlenW(buf) < gecko_path_len)
return FALSE;
buf[gecko_path_len] = 0;
for(ptr = buf; *ptr; ptr++) {
if(*ptr == '\\')
*ptr = '/';
}
UrlUnescapeW(buf, NULL, NULL, URL_UNESCAPE_INPLACE);
buf[gecko_path_len] = 0;
ret = !strcmpiW(buf, gecko_path);
heap_free(buf);
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment