Fixed crash when block-loading more than 8 plugins (bug 4034, r=dvander).

This commit is contained in:
Fyren 2009-10-02 02:30:01 -07:00
parent 85963cafe7
commit d43b027c25

View File

@ -276,7 +276,7 @@ SMCResult CPluginInfoDatabase::ReadSMC_LeavingSection(const SMCStates *states)
{ {
m_infodb_size *= 2; m_infodb_size *= 2;
} }
int newidx = memtab->CreateMem(m_infodb_size, (void **)&table); int newidx = memtab->CreateMem(m_infodb_size * sizeof(int), (void **)&table);
if (m_infodb != -1) if (m_infodb != -1)
{ {
void *oldtable = (int *)memtab->GetAddress(m_infodb); void *oldtable = (int *)memtab->GetAddress(m_infodb);