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

This commit is contained in:
Rob Shearman 2008-02-15 10:06:26 +00:00 committed by Alexandre Julliard
parent d92fe2cbfc
commit eb0a8692f2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}