Commit 65f06595 authored by Claes Sjofors's avatar Claes Sjofors

Bugfix in aref to attribute. First attribute was returned if size = 0, even if flag Object was set

parent e34d1c99
...@@ -436,6 +436,9 @@ mvol_ArefToAttribute ( ...@@ -436,6 +436,9 @@ mvol_ArefToAttribute (
idx = (arp->Offset - offset) / (acp->attr[i].size / acp->attr[i].elem); idx = (arp->Offset - offset) / (acp->attr[i].size / acp->attr[i].elem);
break; break;
} }
if ( arp->Size == 0 && arp->Flags.b.ObjectAttr && offset == arp->Offset &&
acp->attr[i].flags.b.isclass)
break;
if ( acp->attr[i].size == arp->Size) if ( acp->attr[i].size == arp->Size)
break; break;
if ( acp->attr[i].flags.b.array) { if ( acp->attr[i].flags.b.array) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment