Commit 2febaf64 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

mshtml: Fixed last argument to MultiByteToWideChar.

parent 55b504cc
......@@ -444,7 +444,7 @@ static LPWSTR get_url(void)
if(size > sizeof(httpW) && !memcmp(url, httpW, sizeof(httpW))) {
strcatW(url, v_formatW);
MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), -1);
MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), (size-strlenW(url))/sizeof(WCHAR));
}
TRACE("Got URL %s\n", debugstr_w(url));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment