mshtml: Fixed handling escaped paths in is_gecko_path.
This commit is contained in:
parent
5068bdb674
commit
4682730815
|
@ -29,6 +29,7 @@
|
||||||
#include "winreg.h"
|
#include "winreg.h"
|
||||||
#include "ole2.h"
|
#include "ole2.h"
|
||||||
#include "shlobj.h"
|
#include "shlobj.h"
|
||||||
|
#include "shlwapi.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
|
@ -1106,12 +1107,14 @@ BOOL is_gecko_path(const char *path)
|
||||||
if(!buf || strlenW(buf) < gecko_path_len)
|
if(!buf || strlenW(buf) < gecko_path_len)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
buf[gecko_path_len] = 0;
|
|
||||||
for(ptr = buf; *ptr; ptr++) {
|
for(ptr = buf; *ptr; ptr++) {
|
||||||
if(*ptr == '\\')
|
if(*ptr == '\\')
|
||||||
*ptr = '/';
|
*ptr = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UrlUnescapeW(buf, NULL, NULL, URL_UNESCAPE_INPLACE);
|
||||||
|
buf[gecko_path_len] = 0;
|
||||||
|
|
||||||
ret = !strcmpiW(buf, gecko_path);
|
ret = !strcmpiW(buf, gecko_path);
|
||||||
heap_free(buf);
|
heap_free(buf);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue