about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-03-31 23:36:04 +0200
committerserpilliere <serpilliere@users.noreply.github.com>2015-03-31 23:36:04 +0200
commit9660bcdafd1bc532432e7d1664a1bcf491d386f9 (patch)
tree88aa57b4cb7b597be75625986e213727536f6085
parent65c65bd7548fd665ca2631db4b91eb136aa5962c (diff)
parent3b9c92f070574a6dfc3d1e039ea451eebb6efba8 (diff)
downloadmiasm-9660bcdafd1bc532432e7d1664a1bcf491d386f9.tar.gz
miasm-9660bcdafd1bc532432e7d1664a1bcf491d386f9.zip
Merge pull request #134 from p-l-/fix-winobjs-currentpe
Sandbox Win: add PE object to win_api_x86_32.winobjs
-rw-r--r--miasm2/analysis/sandbox.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py
index 310b2ef0..1179a592 100644
--- a/miasm2/analysis/sandbox.py
+++ b/miasm2/analysis/sandbox.py
@@ -184,6 +184,8 @@ class OS_Win(OS):
         with open(self.fname) as fstream:
             self.pe = vm_load_pe(self.jitter.vm, fstream.read())
 
+        win_api_x86_32.winobjs.current_pe = self.pe
+
         # Fix pe imports
         preload_pe(self.jitter.vm, self.pe, libs)