Paul TBBle Hampson : winhttp: Fix resolution-failure TRACE in netconn_resolve to use input WCHAR* rather than already-freed CHAR* .

Alexandre Julliard julliard at winehq.org
Wed Dec 31 07:45:18 CST 2008


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

Author: Paul TBBle Hampson <Paul.Hampson at Pobox.com>
Date:   Wed Dec 31 02:37:47 2008 +1100

winhttp: Fix resolution-failure TRACE in netconn_resolve to use input WCHAR* rather than already-freed CHAR*.

---

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

diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index e9e12f7..2e37b1c 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -586,7 +586,7 @@ BOOL netconn_resolve( WCHAR *hostnameW, INTERNET_PORT port, struct sockaddr_in *
     heap_free( hostname );
     if (ret != 0)
     {
-        TRACE("failed to get address of %s (%s)\n", debugstr_a(hostname), gai_strerror(ret));
+        TRACE("failed to get address of %s (%s)\n", debugstr_w(hostnameW), gai_strerror(ret));
         return FALSE;
     }
     memset( sa, 0, sizeof(struct sockaddr_in) );
@@ -602,7 +602,7 @@ BOOL netconn_resolve( WCHAR *hostnameW, INTERNET_PORT port, struct sockaddr_in *
     heap_free( hostname );
     if (!he)
     {
-        TRACE("failed to get address of %s (%d)\n", debugstr_a(hostname), h_errno);
+        TRACE("failed to get address of %s (%d)\n", debugstr_w(hostnameW), h_errno);
         LeaveCriticalSection( &cs_gethostbyname );
         return FALSE;
     }




More information about the wine-cvs mailing list