André Hentschel : mshtml: Port numbers are unsigned.

Alexandre Julliard julliard at winehq.org
Tue Mar 29 11:43:03 CDT 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Mar 28 21:40:24 2011 +0200

mshtml: Port numbers are unsigned.

---

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

diff --git a/dlls/mshtml/htmllocation.c b/dlls/mshtml/htmllocation.c
index 9d61cd1..9c90edc 100644
--- a/dlls/mshtml/htmllocation.c
+++ b/dlls/mshtml/htmllocation.c
@@ -333,7 +333,7 @@ static HRESULT WINAPI HTMLLocation_get_host(IHTMLLocation *iface, BSTR *p)
 
     if(url.nPort) {
         /* <hostname>:<port> */
-        const WCHAR format[] = {'%','d',0};
+        const WCHAR format[] = {'%','u',0};
         DWORD len = url.dwHostNameLength + 1 + 5 + 1;
         WCHAR buf[len];
 
@@ -406,7 +406,7 @@ static HRESULT WINAPI HTMLLocation_get_port(IHTMLLocation *iface, BSTR *p)
         return hres;
 
     if(url.nPort) {
-        const WCHAR format[] = {'%','d',0};
+        const WCHAR format[] = {'%','u',0};
         WCHAR buf[6];
         snprintfW(buf, 6, format, url.nPort);
         *p = SysAllocString(buf);




More information about the wine-cvs mailing list