Commit f171d00
committed
v2: Fix direct this->field accesses bypassing TDEF_FIELD dispatch
get_size(), get_fqn_hash(), and get_flags() on RETypeDefinition read
fields directly via this->size / this->fqn_hash / this->type_flags,
using the compiled-in tdb84 struct layout. For DMC5 (TDB 67), these
fields are at different offsets in RETypeDefVersion67 — the direct
access read garbage, causing get_size() to return 0 and the
AutoGenerated Types section in ObjectExplorer to show nothing.
Changed all three to use TDEF_FIELD(this, field) which dispatches
to the correct version-specific struct at runtime.
Verified: DMC5 AutoGenerated Types now discovers managed objects.1 parent 4bc6530 commit f171d00
1 file changed
Lines changed: 3 additions & 3 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
981 | | - | |
| 981 | + | |
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
| 986 | + | |
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
| |||
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
1264 | | - | |
| 1264 | + | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
| |||
0 commit comments