Commit 92457cad by Vicent Martí

Merge pull request #1857 from linquize/find-git-path-win32

Fix failure in win32 git path guessing
parents efc9e670 89095fbd
......@@ -130,9 +130,9 @@ 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 (RegOpenKeyExW(hieve, key, 0, KEY_READ, &hKey) == ERROR_SUCCESS) {
if (RegQueryValueExW(hKey, L"InstallLocation", NULL, &dwType,
(LPBYTE)&path16.path, &path16.len) == ERROR_SUCCESS)
{
......
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