fixed bug #1896500 - Exception during compile
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5545 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8ce5f95185
commit
dbd80ca086
1 changed files with 5 additions and 0 deletions
|
@ -360,6 +360,11 @@ int generate_unicons_offsets(LPBYTE exeHeader, size_t exeHeaderSize, LPBYTE unin
|
|||
{
|
||||
offset = re.GetResourceOffsetA(RT_ICON, MAKEINTRESOURCE(icon_index), NSIS_DEFAULT_LANG);
|
||||
|
||||
if (offset > exeHeaderSize)
|
||||
{
|
||||
throw exception("invalid icon offset (possibly compressed icon)");
|
||||
}
|
||||
|
||||
size = *(LPDWORD)seeker;
|
||||
seeker += sizeof(DWORD);
|
||||
*(LPDWORD) seeker = FIX_ENDIAN_INT32(offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue