diff --git a/pefile.py b/pefile.py index 12d2892..53d6e41 100644 --- a/pefile.py +++ b/pefile.py @@ -6294,7 +6294,7 @@ def get_memory_mapped_image(self, max_virtual_address=0x10000000, ImageBase=None self.relocate_image(ImageBase) # Collect all sections in one code block - mapped_data = self.__data__[:] + mapped_data = self.header for section in self.sections: # Miscellaneous integrity tests. # Some packer will set these to bogus values to make tools go nuts.