fixed bug #2572035 - problem with 2.43 and icons

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5935 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-02-06 14:00:02 +00:00
parent b016a4402c
commit 3bb9ec28f8

View file

@ -397,7 +397,7 @@ int generate_unicons_offsets(LPBYTE exeHeader, size_t exeHeaderSize, LPBYTE unin
size = FIX_ENDIAN_INT32(*(LPDWORD)seeker);
seeker += sizeof(DWORD);
if (real_size != size)
if (real_size < size) // uninst icon could be smaller, in case we don't have perfect matches
{
throw runtime_error("invalid icon size (possibly compressed icon)");
}