small changes

This commit is contained in:
aap
2016-07-21 17:06:56 +02:00
parent 0b5498c060
commit 5c3240cce3
2 changed files with 7 additions and 0 deletions

View File

@ -106,6 +106,8 @@ PluginList::registerPlugin(int32 size, uint32 id,
Plugin *p = (Plugin*)malloc(sizeof(Plugin));
p->offset = this->size;
this->size += size;
int32 round = sizeof(void*)-1;
this->size = (this->size + round)&~round;
p->size = size;
p->id = id;