Browse Source

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
maint
Junio C Hamano 6 years ago
parent
commit
97ffca6cc7
  1. 3
      compat/mingw.c
  2. 3
      contrib/credential/wincred/git-credential-wincred.c

3
compat/mingw.c

@ -1624,7 +1624,8 @@ static void ensure_socket_initialization(void) @@ -1624,7 +1624,8 @@ static void ensure_socket_initialization(void)
WSAGetLastError());

for (name = libraries; *name; name++) {
ipv6_dll = LoadLibrary(*name);
ipv6_dll = LoadLibraryExA(*name, NULL,
LOAD_LIBRARY_SEARCH_SYSTEM32);
if (!ipv6_dll)
continue;


3
contrib/credential/wincred/git-credential-wincred.c

@ -75,7 +75,8 @@ static CredDeleteWT CredDeleteW; @@ -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");


Loading…
Cancel
Save