Rob Shearman : urlmon: Fix the character count passed into MultiByteToWideChar in HttpProtocol_Start .

Alexandre Julliard julliard at winehq.org
Sat Feb 16 09:57:26 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Fri Feb 15 10:06:26 2008 +0000

urlmon: Fix the character count passed into MultiByteToWideChar in HttpProtocol_Start.

---

 dlls/urlmon/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c
index 712800d..ede6f14 100644
--- a/dlls/urlmon/http.c
+++ b/dlls/urlmon/http.c
@@ -380,7 +380,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
             if (!(user_agent = CoTaskMemAlloc((len)*sizeof(WCHAR))))
                 WARN("Out of memory\n");
             else
-                MultiByteToWideChar(CP_ACP, 0, user_agenta, -1, user_agent, len*sizeof(WCHAR));
+                MultiByteToWideChar(CP_ACP, 0, user_agenta, -1, user_agent, len);
         }
         heap_free(user_agenta);
     }




More information about the wine-cvs mailing list