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:
kichik 2007-04-26 20:26:04 +00:00
parent cdf33703be
commit 8a8844bcb8
3 changed files with 9 additions and 11 deletions

View file

@ -132,14 +132,8 @@ static char * NSISCALL GetStringFromParm(int id_)
}
#ifdef NSIS_SUPPORT_REGISTRYFUNCTIONS
REGSAM NSISCALL AlterRegistrySAM(REGSAM sam)
{
if (g_exec_flags.alter_reg_view)
{
return sam | KEY_WOW64_64KEY;
}
return sam;
}
#define AlterRegistrySAM(sam) (sam | g_exec_flags.alter_reg_view)
// based loosely on code from Tim Kosse
// in win9x this isn't necessary (RegDeleteKey() can delete a tree of keys),

View file

@ -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;