[PATCH] mshtml: Fixed last argument to MBtoWC
Rob Shearman
robertshearman at gmail.com
Thu Feb 5 09:53:04 CST 2009
2009/2/4 Marcus Meissner <marcus at jet.franken.de>:
> @@ -442,7 +442,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));
Dividing a string length (which returns character count) by
sizeof(WCHAR) doesn't look right.
--
Rob Shearman
More information about the wine-devel
mailing list