Commit e4e5eda3 authored by Serge Gautherie's avatar Serge Gautherie Committed by Alexandre Julliard

mscoree: RegQueryValueExW() wants bytes, not chars.

parent 10257a94
......@@ -477,7 +477,7 @@ static BOOL get_install_root(LPWSTR install_dir)
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, dotnet_key, 0, KEY_READ, &key))
return FALSE;
len = MAX_PATH;
len = MAX_PATH * sizeof(WCHAR);
if (RegQueryValueExW(key, install_root, 0, NULL, (LPBYTE)install_dir, &len))
{
RegCloseKey(key);
......
......@@ -80,7 +80,7 @@ static BOOL get_install_root(LPWSTR install_dir)
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, dotnet_key, 0, KEY_READ, &key))
return FALSE;
len = MAX_PATH;
len = MAX_PATH * sizeof(WCHAR);
if (RegQueryValueExW(key, install_root, 0, NULL, (LPBYTE)install_dir, &len))
{
RegCloseKey(key);
......
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