Delay load Version.dll to avoid dll hijacking [bug #1125]
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6642 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0b5b7fad0e
commit
6be5d8d07d
5 changed files with 20 additions and 11 deletions
|
@ -127,6 +127,9 @@ enum myGetProcAddressFunctions {
|
|||
MGA_InitiateShutdown,
|
||||
MGA_SHAutoComplete, // x64 can link to shlwapi directly but as long as MGA_SHGetFolderPath is used we can stick with myGetProcAddress
|
||||
MGA_SHGetFolderPath, // TODO: This can probably call something else directly on x64
|
||||
MGA_GetFileVersionInfoSize, // Version.dll exists in all Windows versions, it is delay loaded to avoid dll hijacking [bug #1125]
|
||||
MGA_GetFileVersionInfo,
|
||||
MGA_VerQueryValue
|
||||
};
|
||||
|
||||
void * NSISCALL myGetProcAddress(const enum myGetProcAddressFunctions func);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue