wininet: Strip trailing slashes from filename in CreateUrlCacheEntryW.

Hans Leidekker hans at codeweavers.com
Tue Jan 20 07:49:17 CST 2009


See http://bugs.winehq.org/show_bug.cgi?id=5054

 -Hans

diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index 687290c..86d2ab3 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -2258,6 +2258,8 @@ BOOL WINAPI CreateUrlCacheEntryW(
 	if (!len)
 	    return FALSE;
         szFile[len] = '\0';
+        while(szFile[--len] == '/') szFile[len] = '\0';
+
         /* FIXME: get rid of illegal characters like \, / and : */
     }
     else



More information about the wine-patches mailing list