mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-21 10:24:35 +00:00
Merge pull request #1857 from linquize/find-git-path-win32
Fix failure in win32 git path guessing
This commit is contained in:
commit
92457cad41
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user