urlmon: Fix the character count passed into MultiByteToWideChar in HttpProtocol_Start.
This commit is contained in:
parent
d92fe2cbfc
commit
eb0a8692f2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue