[patch 2] mshtml: Added support for coexisting different Gecko
versions installation.
Alexandre Julliard
julliard at winehq.org
Wed Jun 6 06:47:03 CDT 2007
Jacek Caban <jacek at codeweavers.com> writes:
> - /* @@ Wine registry key: HKCU\Software\Wine\MSHTML */
> - res = RegOpenKeyW(HKEY_CURRENT_USER, wszMshtmlKey, &hkey);
> + memcpy(mshtml_key, wszMshtmlKey, sizeof(wszMshtmlKey));
> + MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1,
> + mshtml_key+sizeof(wszMshtmlKey)/sizeof(WCHAR), -1);
Please pass the correct dest buffer size, not -1.
> + GetEnvironmentVariableA("windir", install_dir, sizeof(install_dir));
GetWindowsDirectory is preferable.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list