diff options
Diffstat (limited to 'src/hash')
| -rw-r--r-- | src/hash/hash_win32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hash/hash_win32.c b/src/hash/hash_win32.c index 43d54ca6d..6732f93d7 100644 --- a/src/hash/hash_win32.c +++ b/src/hash/hash_win32.c @@ -46,7 +46,8 @@ GIT_INLINE(int) hash_cng_prov_init(void) return -1; /* Load bcrypt.dll explicitly from the system directory */ - if ((dll_path_len = GetSystemDirectory(dll_path, MAX_PATH)) == 0 || dll_path_len > MAX_PATH || + if ((dll_path_len = GetSystemDirectory(dll_path, MAX_PATH)) == 0 || + dll_path_len > MAX_PATH || StringCchCat(dll_path, MAX_PATH, "\\") < 0 || StringCchCat(dll_path, MAX_PATH, GIT_HASH_CNG_DLL_NAME) < 0 || (hash_prov.prov.cng.dll = LoadLibrary(dll_path)) == NULL) |
