mirror of
https://github.com/git/git.git
synced 2026-01-27 02:48:32 +00:00
fixup! mingw: factor out lazy-loading functions from .dll files
This commit is contained in:
@@ -29,7 +29,8 @@ static inline void *get_proc_addr(struct proc_addr *proc)
|
||||
if (!proc->initialized) {
|
||||
HANDLE hnd;
|
||||
proc->initialized = 1;
|
||||
hnd = LoadLibraryA(proc->dll);
|
||||
hnd = LoadLibraryExA(proc->dll, NULL,
|
||||
LOAD_LIBRARY_SEARCH_SYSTEM32);
|
||||
if (hnd)
|
||||
proc->pfunction = GetProcAddress(hnd, proc->function);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user