summaryrefslogtreecommitdiff
path: root/src/hash
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-08-28 09:38:14 -0700
committerVicent Martí <vicent@github.com>2013-08-28 09:38:14 -0700
commitdbecec37a74a04a350e7c2ef6aee49d5d833d768 (patch)
tree5d911cac3bd602a3eab4c095ef8e96b84db332b3 /src/hash
parent1ef05e3f0ea8fa8db2167307101c8c43d1c1784b (diff)
parentb2d3efcbce2d12cfa9736ab4f9283c91600a8a75 (diff)
downloadlibgit2-dbecec37a74a04a350e7c2ef6aee49d5d833d768.tar.gz
Merge pull request #1805 from libgit2/threading-packed-load
Thread safety for the refdb_fs
Diffstat (limited to 'src/hash')
-rw-r--r--src/hash/hash_win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hash/hash_win32.c b/src/hash/hash_win32.c
index 362712e9a..095ceb359 100644
--- a/src/hash/hash_win32.c
+++ b/src/hash/hash_win32.c
@@ -28,7 +28,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)