From d43de316c3ae2e1e90458e2964671e99142a0bea Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 26 Mar 2008 16:47:24 +0100 Subject: [PATCH] urlmon: Don't use -1 length in WideCharToMultiByte call. --- dlls/urlmon/sec_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/urlmon/sec_mgr.c b/dlls/urlmon/sec_mgr.c index 049ed2acbee..943b6dd7678 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;