From 3bb9ec28f8ae1f7b3cabaa56ffd4c28203def56a Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 6 Feb 2009 14:00:02 +0000 Subject: [PATCH] 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 --- Source/icon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/icon.cpp b/Source/icon.cpp index 4c2ad0b1..1de25ad4 100644 --- a/Source/icon.cpp +++ b/Source/icon.cpp @@ -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)"); }