Windows: Clean up memmap based on @imhlv2's suggestion

This commit is contained in:
Mike Auty
2020-08-26 20:36:52 +01:00
committed by ikelos
parent 89b466c8ac
commit 8ed5767c92
@@ -35,7 +35,6 @@ class Memmap(interfaces.plugins.PluginInterface):
def _generator(self, procs):
for proc in procs:
offset = 0
pid = "Unknown"
try:
@@ -47,8 +46,7 @@ class Memmap(interfaces.plugins.PluginInterface):
pid, excp.invalid_address, excp.layer_name))
continue
filename = str(pid)
filedata = interfaces.plugins.FileInterface("pid.{}.dmp".format(filename))
filedata = interfaces.plugins.FileInterface("pid.{}.dmp".format(pid))
for mapval in proc_layer.mapping(0x0, proc_layer.maximum_address, ignore_errors = True):
offset, size, mapped_offset, mapped_size, maplayer = mapval