Skip to content

Found 2 mistakes that cause incorrect properties output #23

@pplee2020

Description

@pplee2020

1.in FileNode.py:line581
class ObjectSpaceObjectStreamOfIDs:
def init(self, file, document):
self.header = ObjectSpaceObjectStreamHeader(file)
self.body = []
self.head = 0
for i in range(self.header.Count):
self.body.append(CompactID(file, document))

def read(self):
    res = None
    if self.head < len(self.body):
        res = self.body[self.head]
        self.head += 1#Miss this line
    return res

def reset(self):
    self.head = 0

2.in FileNode.py:line695
elif 'languageid' in property_name_lower:
lcid, =struct.unpack('<I', self.rgData[i])
propertyVal = '{}({})'.format(PropertySet.lcid_to_string(lcid), lcid)
else:
if isinstance(self.rgData[i], list):
#propertyVal = [str(i) for i in self.rgData[i]]
propertyVal = [str(j) for j in self.rgData[i]] #i -> j
else:
propertyVal = str(self.rgData[i])
self._formated_properties[propertyName] = propertyVal
return self._formated_properties

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions