wininet: Don't set default gopher protocol in InternetCrackUrlW.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-12-19 15:11:07 +01:00 committed by Alexandre Julliard
parent 64cb9425da
commit 4335be3462
2 changed files with 3 additions and 3 deletions

View File

@ -1829,9 +1829,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;
}

View 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)