wininet file scheme

Nick Cronin quintok at gmail.com
Fri Jun 16 23:12:42 CDT 2006


Skipped content of type multipart/alternative-------------- next part --------------
Index: wine/dlls/wininet/internet.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/internet.c,v
retrieving revision 1.179
diff -u -p -r1.179 internet.c
--- wine/dlls/wininet/internet.c	2 Jun 2006 19:12:55 -0000	1.179
+++ wine/dlls/wininet/internet.c	17 Jun 2006 04:08:39 -0000
@@ -1377,7 +1377,11 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lp
         /* double slash indicates the net_loc portion is present */
         if ((lpszcp[0] == '/') && (lpszcp[1] == '/'))
         {
-            lpszcp += 2;
+            /* three slashes is possible in 'file' protocol */
+            if( lpszcp[2] == '/' )
+                lpszcp+= 3;
+            else
+                lpszcp += 2;
 
             lpszNetLoc = strpbrkW(lpszcp, lpszSlash);
             if (lpszParam)


More information about the wine-patches mailing list