Commit ffbd337a by Linquize

Fix failure in win32_find_git_in_registry()

The buffer size 0 was definitely not enough so it failed
parent efc9e670
......@@ -130,7 +130,7 @@ static int win32_find_git_in_registry(
assert(buf);
path16.len = 0;
path16.len = MAX_PATH;
if (RegOpenKeyExW(hieve, key, 0, KEY_ALL_ACCESS, &hKey) == ERROR_SUCCESS) {
if (RegQueryValueExW(hKey, L"InstallLocation", NULL, &dwType,
......
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