Merge remote-tracking branch 'origin/GP-5576_ghizard_set_vxtable_alignment_and_packing'

This commit is contained in:
Ryan Kurtz 2025-04-09 11:01:30 -04:00
commit 8ee341cd65
2 changed files with 4 additions and 0 deletions

View file

@ -262,6 +262,8 @@ public abstract class VirtualBaseTable implements VBTable {
dt.add(defaultEntry, "", "");
masterOrdinal++;
}
dt.align(defaultEntry.getAlignedLength());
dt.setToDefaultPacking();
tableStructure = (Structure) dtm.resolve(dt, null);
//System.out.println(tableStructure.toString());
isBuilt = true;

View file

@ -224,6 +224,8 @@ public abstract class VirtualFunctionTable implements VFTable {
dt.add(tableEntry.getFunctionPointer(), tableEntry.getOverridePath().toString(), "");
masterOffset += entrySize;
}
dt.align(defaultEntry.getAlignedLength());
dt.setToDefaultPacking();
tableStructure = (Structure) dtm.resolve(dt, null);
//System.out.println(tableStructure.toString());
isBuilt = true;