about summary refs log tree commit diff stats
path: root/miasm/tools/to_c_helper.py
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2013-02-26 10:18:47 +0100
committerserpilliere <devnull@localhost>2013-02-26 10:18:47 +0100
commita1222ab09f5bb3adb01f0a5eaf3c0274e589aeaf (patch)
tree051468e8946cd3f9fc0fa1ec659a70e88ff20b18 /miasm/tools/to_c_helper.py
parentf54796472f29bf04a4d3006bee0adf77a9bb2d5f (diff)
downloadfocaccia-miasm-a1222ab09f5bb3adb01f0a5eaf3c0274e589aeaf.tar.gz
focaccia-miasm-a1222ab09f5bb3adb01f0a5eaf3c0274e589aeaf.zip
ia32_arch: add lar
Diffstat (limited to 'miasm/tools/to_c_helper.py')
-rw-r--r--miasm/tools/to_c_helper.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/miasm/tools/to_c_helper.py b/miasm/tools/to_c_helper.py
index 358290e0..ab8317bc 100644
--- a/miasm/tools/to_c_helper.py
+++ b/miasm/tools/to_c_helper.py
@@ -1163,11 +1163,8 @@ def load_pe_in_vm(fname_in, options, all_imp_dll = None, **kargs):
     from miasm.tools import pe_helper
     from miasm.tools import codenat
 
-    parse_resources = True
-    if 'parse_resources' in kargs:
-        parse_resources = kargs['parse_resources']
     e = pe_init.PE(open(fname_in, 'rb').read(),
-                   parse_resources = parse_resources)
+                   parse_resources = options.parse_resources)
 
     vm_init_regs()
     init_memory_page_pool_py()