size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5127 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
cdf33703be
commit
8a8844bcb8
3 changed files with 9 additions and 11 deletions
|
@ -904,9 +904,10 @@ struct MGA_FUNC MGA_FUNCS[] = {
|
|||
|
||||
void * NSISCALL myGetProcAddress(const enum myGetProcAddressFunctions func)
|
||||
{
|
||||
HMODULE hModule = GetModuleHandle(MGA_FUNCS[func].dll);
|
||||
const char *dll = MGA_FUNCS[func].dll;
|
||||
HMODULE hModule = GetModuleHandle(dll);
|
||||
if (!hModule)
|
||||
hModule = LoadLibrary(MGA_FUNCS[func].dll);
|
||||
hModule = LoadLibrary(dll);
|
||||
if (!hModule)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue