Juan Lang : winhttp: Don' t set port number to a default before scheme is known.

Alexandre Julliard julliard at winehq.org
Wed Jul 15 09:47:13 CDT 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Jul 14 13:04:42 2009 -0700

winhttp: Don't set port number to a default before scheme is known.

---

 dlls/winhttp/session.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index b09e887..fab6c96 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -343,7 +343,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT
                 if (*(colon + 1))
                     connect->serverport = atoiW( colon + 1 );
                 else
-                    connect->serverport = INTERNET_DEFAULT_HTTP_PORT;
+                    connect->serverport = INTERNET_DEFAULT_PORT;
             }
         }
         else
@@ -357,7 +357,7 @@ BOOL set_server_for_hostname( connect_t *connect, LPCWSTR server, INTERNET_PORT
                     ret = FALSE;
                     goto end;
                 }
-                connect->serverport = INTERNET_DEFAULT_HTTP_PORT;
+                connect->serverport = INTERNET_DEFAULT_PORT;
             }
         }
     }




More information about the wine-cvs mailing list