summaryrefslogtreecommitdiff
path: root/contrib/credential/wincred/git-credential-wincred.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-10-30 15:43:48 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-30 15:43:48 +0900
commit97ffca6cc74e5313a7d503f76fe2a99f13750c69 (patch)
tree905381a7a4b8a3b2c49a3b0781adaa58808a8109 /contrib/credential/wincred/git-credential-wincred.c
parentMerge branch 'js/mingw-getcwd' (diff)
parentmingw: load system libraries the recommended way (diff)
downloadtgif-97ffca6cc74e5313a7d503f76fe2a99f13750c69.tar.xz
Merge branch 'js/mingw-load-sys-dll'
The way DLLs are loaded on the Windows port has been improved. * js/mingw-load-sys-dll: mingw: load system libraries the recommended way
Diffstat (limited to 'contrib/credential/wincred/git-credential-wincred.c')
-rw-r--r--contrib/credential/wincred/git-credential-wincred.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/credential/wincred/git-credential-wincred.c b/contrib/credential/wincred/git-credential-wincred.c
index 86518cd93d..5bdad41de1 100644
--- a/contrib/credential/wincred/git-credential-wincred.c
+++ b/contrib/credential/wincred/git-credential-wincred.c
@@ -75,7 +75,8 @@ static CredDeleteWT CredDeleteW;
static void load_cred_funcs(void)
{
/* load DLLs */
- advapi = LoadLibrary("advapi32.dll");
+ advapi = LoadLibraryExA("advapi32.dll", NULL,
+ LOAD_LIBRARY_SEARCH_SYSTEM32);
if (!advapi)
die("failed to load advapi32.dll");