Skip to content

Commit 3fff816

Browse files
author
Andrew Strelsky
authored
Merge pull request astrelsky#32 from garyttierney/bugfix/vftable-count
Fix vftables being created with only 1 entry
2 parents 8cc330d + bce1b3b commit 3fff816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/cppclassanalyzer/vs/VsVtableModel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public Address[] getTableAddresses() {
7070
}
7171

7272
private Function[] getFunctions(VfTableModel vftable) {
73-
List<Function> functions = new ArrayList<>(vftable.getCount());
73+
List<Function> functions = new ArrayList<>(vftable.getElementCount());
7474
FunctionManager manager = program.getFunctionManager();
75-
for (int i = 0; i < vftable.getCount(); i++) {
75+
for (int i = 0; i < vftable.getElementCount(); i++) {
7676
Function f = manager.getFunctionAt(vftable.getVirtualFunctionPointer(i));
7777
if (f == null) {
7878
break;

0 commit comments

Comments
 (0)