mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 00:30:27 +00:00
Fix failure in win32_find_git_in_registry()
The buffer size 0 was definitely not enough so it failed
This commit is contained in:
parent
efc9e6700f
commit
ffbd337aef
@ -130,7 +130,7 @@ static int win32_find_git_in_registry(
|
|||||||
|
|
||||||
assert(buf);
|
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_ALL_ACCESS, &hKey) == ERROR_SUCCESS) {
|
||||||
if (RegQueryValueExW(hKey, L"InstallLocation", NULL, &dwType,
|
if (RegQueryValueExW(hKey, L"InstallLocation", NULL, &dwType,
|
||||||
|
Loading…
Reference in New Issue
Block a user