Tidy up to use a single method for reading from the context.

This commit is contained in:
Mike Auty
2016-11-18 17:18:30 +00:00
parent f707c0c4e9
commit 3c181e940e
+1 -1
View File
@@ -70,7 +70,7 @@ def scan(ctx, layer_name):
if not ctx.memory[layer_name].is_valid(i * PAGE_SIZE, 2):
break
data = ctx.memory.read(layer_name, i * PAGE_SIZE, 2)
data = ctx.memory[layer_name].read(i * PAGE_SIZE, 2)
if data == b'MZ':
mz_offset = i * PAGE_SIZE
break