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

This commit is contained in:
Jacek Caban 2008-03-26 16:47:24 +01:00 committed by Alexandre Julliard
parent c94e646fc1
commit d43de316c3
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ static HRESULT WINAPI SecManagerImpl_GetSecurityId(IInternetSecurityManager *ifa
return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER); 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); heap_free(url);
*(DWORD*)(pbSecurityId+len) = zone; *(DWORD*)(pbSecurityId+len) = zone;