Jacek Caban jacek@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.