Fix invalid CRC messages for data < 512
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2768 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d6c88c52c8
commit
048b077782
1 changed files with 1 additions and 0 deletions
|
@ -200,6 +200,7 @@ const char * NSISCALL loadHeaders(int cl_flags)
|
|||
if (do_crc)
|
||||
{
|
||||
int fcrc;
|
||||
SetSelfFilePointer(m_pos, FILE_BEGIN);
|
||||
if (!ReadSelfFile(&fcrc, sizeof(int)) || crc != fcrc)
|
||||
return _LANG_INVALIDCRC;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue