diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-12-18 21:10:02 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-12-20 17:44:23 +0100 |
| commit | 519bd46d24b4a3ad85fde021189835ab8a12358d (patch) | |
| tree | d6b175413cb2f9c4568bbf3cc10c0b3c544a76f3 | |
| parent | aa9145fca636c2df92e333eb977e548ebe922971 (diff) | |
| download | miasm-519bd46d24b4a3ad85fde021189835ab8a12358d.tar.gz miasm-519bd46d24b4a3ad85fde021189835ab8a12358d.zip | |
LoaderPE: vm_load_pe_lib*: remove unused argument
| -rw-r--r-- | miasm2/jitter/loader/pe.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/miasm2/jitter/loader/pe.py b/miasm2/jitter/loader/pe.py index 12a62efa..356d83d8 100644 --- a/miasm2/jitter/loader/pe.py +++ b/miasm2/jitter/loader/pe.py @@ -160,20 +160,18 @@ def vm_load_pe(vm, fdata, align_s=True, load_hdr=True, return e -def vm_load_pe_lib(fname_in, libs, lib_path_base, patch_vm_imp, **kargs): +def vm_load_pe_lib(fname_in, libs, lib_path_base, **kargs): fname = os.path.join(lib_path_base, fname_in) with open(fname) as fstream: e = vm_load_pe(fstream.read(), **kargs) libs.add_export_lib(e, fname_in) - # preload_pe(e, libs, patch_vm_imp) return e -def vm_load_pe_libs(libs_name, libs, lib_path_base="win_dll", - patch_vm_imp=True, **kargs): +def vm_load_pe_libs(libs_name, libs, lib_path_base="win_dll", **kargs): lib_imgs = {} for fname in libs_name: - e = vm_load_pe_lib(fname, libs, lib_path_base, patch_vm_imp) + e = vm_load_pe_lib(fname, libs, lib_path_base) lib_imgs[fname] = e return lib_imgs |