another sanity check
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4630 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6ca7033812
commit
90422d4789
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ PRESOURCE_DIRECTORY CResourceEditor::GetResourceDirectory(
|
|||
DWORD *pdwResSecVA /*=NULL*/,
|
||||
DWORD *pdwSectionIndex /*=NULL*/
|
||||
) {
|
||||
if (ConvertEndianness(ntHeaders->OptionalHeader.NumberOfRvaAndSizes) <= IMAGE_DIRECTORY_ENTRY_RESOURCE)
|
||||
throw runtime_error("No resource section found");
|
||||
// Get resource section virtual address
|
||||
DWORD dwResSecVA = ConvertEndianness(ntHeaders->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_RESOURCE].VirtualAddress);
|
||||
// Pointer to the sections headers array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue