mshtml: Fixed handling escaped paths in is_gecko_path.

This commit is contained in:
Jacek Caban 2013-03-01 14:14:48 +01:00 committed by Alexandre Julliard
parent 5068bdb674
commit 4682730815
1 changed files with 4 additions and 1 deletions

View File

@ -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;