[WINESYNC] wininet: Don't set default gopher protocol in InternetCrackUrlW.
authorwinesync <ros-dev@reactos.org>
Tue, 8 Dec 2020 17:00:49 +0000 (18:00 +0100)
committerJérôme Gardou <zefklop@users.noreply.github.com>
Tue, 5 Jan 2021 10:03:13 +0000 (11:03 +0100)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
wine commit id 4335be346271072f440419b9234883aef187d857 by Jacek Caban <jacek@codeweavers.com>

dll/win32/wininet/internet.c
modules/rostests/winetests/wininet/url.c
sdk/tools/winesync/wininet.cfg

index 10e4762..94dd800 100644 (file)
@@ -1836,9 +1836,6 @@ BOOL WINAPI InternetCrackUrlW(const WCHAR *lpszUrl, DWORD dwUrlLength, DWORD dwF
                     case INTERNET_SCHEME_FTP:
                         lpUC->nPort = INTERNET_DEFAULT_FTP_PORT;
                         break;
-                    case INTERNET_SCHEME_GOPHER:
-                        lpUC->nPort = INTERNET_DEFAULT_GOPHER_PORT;
-                        break;
                     default:
                         break;
                     }
index ba9d965..bce7dc7 100644 (file)
@@ -172,6 +172,9 @@ static const crack_url_test_t crack_url_tests[] = {
     {"res://IELib.dll/test.htm",
         0, 3, INTERNET_SCHEME_RES, 6, 9, -1, 0, -1, 0, -1, 0, 15, 9, -1, 0,
         "res", "IELib.dll", "", "", "/test.htm", ""},
+    {"gopher://www.winehq.org/site/about#hi",
+        0, 6, INTERNET_SCHEME_GOPHER, 9, 14, -1, 0, -1, 0, -1, 0, 23, 11, 34, 3,
+        "gopher", "www.winehq.org", "", "", "/site/about", "#hi"},
 };
 
 static WCHAR *a2w(const char *str)
index 125dba9..94e2e09 100644 (file)
@@ -5,4 +5,4 @@ files:
   include/wininet.h: sdk/include/psdk/wininet.h
   include/winineti.h: sdk/include/psdk/winineti.h
 tags:
-  wine: 64cb9425da43271109bc1df8df4aa32132f257ae
+  wine: 4335be346271072f440419b9234883aef187d857