diff --git a/direct/src/dist/pefile.py b/direct/src/dist/pefile.py index 548c09e1b7..df7aac8432 100755 --- a/direct/src/dist/pefile.py +++ b/direct/src/dist/pefile.py @@ -246,7 +246,11 @@ class VersionInfoResource(object): length, value_length = unpack('= (3, 2): + dwords.frombytes(bytes(data[40:offset])) + else: + dwords.fromstring(bytes(data[40:offset])) + if len(dwords) > 0: self.signature = dwords[0] if len(dwords) > 1: