- Made CRC checking from CD-ROM or a network drive faster

- Some more optimizations


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3225 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-11-28 17:57:59 +00:00
parent 69e2d02cc7
commit acf798c33b
3 changed files with 18 additions and 13 deletions

View file

@ -134,9 +134,8 @@ const char * NSISCALL loadHeaders(int cl_flags)
left = m_length = GetFileSize(db_hFile,NULL);
while (left > 0)
{
static char temp[512];
DWORD l = left;
l = min(l, 512);
static char temp[32768];
DWORD l = min(left, (g_filehdrsize ? 32768 : 512));
if (!ReadSelfFile(temp, l))
{
#if defined(NSIS_CONFIG_CRC_SUPPORT) && defined(NSIS_CONFIG_VISIBLE_SUPPORT)