Fixed crash when block-loading more than 8 plugins (bug 4034, r+a=dvander).
This commit is contained in:
parent
b0513dce63
commit
6d40705a76
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user