mirror of
https://github.com/git/git.git
synced 2026-02-01 13:31:58 +00:00
fixup! Win32: simplify loading of DLL functions
This commit is contained in:
@@ -66,8 +66,9 @@ static inline void *get_proc_addr(struct proc_addr *proc)
|
||||
{
|
||||
/* only do this once */
|
||||
if (!proc->initialized) {
|
||||
HANDLE hnd;
|
||||
proc->initialized = 1;
|
||||
HANDLE hnd = LoadLibraryA(proc->dll);
|
||||
hnd = LoadLibraryA(proc->dll);
|
||||
if (hnd)
|
||||
proc->pfunction = GetProcAddress(hnd, proc->function);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user