Jacek Caban : mshtml: Fixed handling escaped paths in is_gecko_path.

Alexandre Julliard julliard at winehq.org
Fri Mar 1 12:42:24 CST 2013


Module: wine
Branch: master
Commit: 46827308158ad290806c099d03fcc89db4644566
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=46827308158ad290806c099d03fcc89db4644566

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Mar  1 14:14:48 2013 +0100

mshtml: Fixed handling escaped paths in is_gecko_path.

---

 dlls/mshtml/nsembed.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index 7691849..1613fe8 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -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;




More information about the wine-cvs mailing list