Jacek Caban : wininet: Get rid of no longer needed INTERNET_INVALID_PORT_NUMBER in get_server.

Alexandre Julliard julliard at winehq.org
Thu Dec 15 16:58:32 CST 2016


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Dec 15 18:36:04 2016 +0100

wininet: Get rid of no longer needed INTERNET_INVALID_PORT_NUMBER in get_server.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wininet/http.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 1dffbaa..635b7d6 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -270,9 +270,6 @@ server_t *get_server(substr_t name, INTERNET_PORT port, BOOL is_https, BOOL do_c
 {
     server_t *iter, *server = NULL;
 
-    if(port == INTERNET_INVALID_PORT_NUMBER)
-        port = INTERNET_DEFAULT_HTTP_PORT;
-
     EnterCriticalSection(&connection_pool_cs);
 
     LIST_FOR_EACH_ENTRY(iter, &connection_pool, server_t, entry) {




More information about the wine-cvs mailing list