bug #1125: Don't load modules from the application nor current directory.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6645 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
2316018c0c
commit
e83197997e
4 changed files with 23 additions and 4 deletions
|
@ -1063,6 +1063,7 @@ struct MGA_FUNC
|
|||
|
||||
struct MGA_FUNC MGA_FUNCS[] = {
|
||||
#ifdef _UNICODE
|
||||
{"KERNEL32", "SetDefaultDllDirectories"},
|
||||
#ifndef _WIN64
|
||||
{"KERNEL32", "GetDiskFreeSpaceExW"},
|
||||
{"KERNEL32", "GetUserDefaultUILanguage"},
|
||||
|
@ -1076,6 +1077,7 @@ struct MGA_FUNC MGA_FUNCS[] = {
|
|||
{"VERSION", "VerQueryValueW"}
|
||||
};
|
||||
#else
|
||||
{"KERNEL32", "SetDefaultDllDirectories"},
|
||||
{"KERNEL32", "GetDiskFreeSpaceExA"},
|
||||
{"KERNEL32", "GetUserDefaultUILanguage"},
|
||||
{"ADVAPI32", "RegDeleteKeyExA"},
|
||||
|
@ -1096,7 +1098,7 @@ struct MGA_FUNC MGA_FUNCS[] = {
|
|||
* @param func Enum value that indexes the MGA_FUNCS array.
|
||||
* @return Pointer to the function identified by the enum value.
|
||||
*/
|
||||
void * NSISCALL myGetProcAddress(const enum myGetProcAddressFunctions func)
|
||||
void* NSISCALL myGetProcAddress(const enum myGetProcAddressFunctions func)
|
||||
{
|
||||
#ifdef UNICODE
|
||||
static const TCHAR dllpathfmt[] = _T("%s%hs.dll"); // Strings in MGA_FUNC are always ANSI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue