Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found 2 mistakes that cause incorrect properties output #23

Open
pplee2020 opened this issue May 15, 2024 · 0 comments
Open

Found 2 mistakes that cause incorrect properties output #23

pplee2020 opened this issue May 15, 2024 · 0 comments

Comments

@pplee2020
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant