Jacek Caban : urlmon: Don't use -1 length in WideCharToMultiByte call.

Alexandre Julliard julliard at winehq.org
Thu Mar 27 07:21:46 CDT 2008


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Mar 26 16:47:24 2008 +0100

urlmon: Don't use -1 length in WideCharToMultiByte call.

---

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

diff --git a/dlls/urlmon/sec_mgr.c b/dlls/urlmon/sec_mgr.c
index 049ed2a..943b6dd 100644
--- a/dlls/urlmon/sec_mgr.c
+++ b/dlls/urlmon/sec_mgr.c
@@ -445,7 +445,7 @@ static HRESULT WINAPI SecManagerImpl_GetSecurityId(IInternetSecurityManager *ifa
         return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
     }
 
-    WideCharToMultiByte(CP_ACP, 0, url, -1, (LPSTR)pbSecurityId, -1, NULL, NULL);
+    WideCharToMultiByte(CP_ACP, 0, url, -1, (LPSTR)pbSecurityId, len, NULL, NULL);
     heap_free(url);
 
     *(DWORD*)(pbSecurityId+len) = zone;




More information about the wine-cvs mailing list