mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
mshtml: Fixed handling escaped paths in is_gecko_path.
This commit is contained in:
parent
5068bdb674
commit
4682730815
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue