Serge Gautherie
2020-06-01 12:06:49 +03:00
committed by GitHub
co-authored by Victor Martinez
parent 1c504f4c57
commit 703c56beb3
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -907,7 +907,7 @@ HRESULT WINAPI UserInstStubWrapperW(HWND hWnd, HINSTANCE hInstance,
{
HKEY setup, guid;
WCHAR stub[MAX_PATH];
DWORD size = MAX_PATH;
DWORD size = sizeof(stub);
HRESULT hr = S_OK;
BOOL res;
+1 -1
View File
@@ -377,7 +377,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);
+1 -1
View File
@@ -53,7 +53,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);
+1 -1
View File
@@ -4126,7 +4126,7 @@ BOOL WINAPI IsOS(DWORD feature)
*/
HRESULT WINAPI SHLoadRegUIStringW(HKEY hkey, LPCWSTR value, LPWSTR buf, DWORD size)
{
DWORD type, sz = size;
DWORD type, sz = size * sizeof(WCHAR);
if(RegQueryValueExW(hkey, value, NULL, &type, (LPBYTE)buf, &sz) != ERROR_SUCCESS)
return E_FAIL;