From ffbd337aefae76a646bafd6e5f3c1edc18400f05 Mon Sep 17 00:00:00 2001 From: Linquize Date: Tue, 17 Sep 2013 22:57:06 +0800 Subject: [PATCH] Fix failure in win32_find_git_in_registry() The buffer size 0 was definitely not enough so it failed --- src/win32/findfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/findfile.c b/src/win32/findfile.c index a1c11fcfb..eb83178a5 100644 --- a/src/win32/findfile.c +++ b/src/win32/findfile.c @@ -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,