fix writing of property values

This commit is contained in:
Jan Petykiewicz 2020-09-10 19:55:03 -07:00
parent 2c2013a0fc
commit 167b16e1c9

View File

@ -1027,7 +1027,7 @@ class Property(Record):
size += self.name.write(stream) # type: ignore
if not v:
if u == 0x0f:
size += write_uint(stream, self.name) # type: ignore
size += write_uint(stream, len(self.values)) # type: ignore
size += sum(write_property_value(stream, p) for p in self.values) # type: ignore
return size