diff options
| author | serpilliere <devnull@localhost> | 2012-06-05 16:31:38 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2012-06-05 16:31:38 +0200 |
| commit | 3278048f0d77f0c59ac8176f0fadade3155ad47d (patch) | |
| tree | 8694edfaafde995544c3cd9d7908aaf016959b3d | |
| parent | 429e85146c19c86c2d3a6d67e599369af0d1bfef (diff) | |
| download | miasm-3278048f0d77f0c59ac8176f0fadade3155ad47d.tar.gz miasm-3278048f0d77f0c59ac8176f0fadade3155ad47d.zip | |
seh_helper: fix api bug
| -rw-r--r-- | miasm/tools/seh_helper.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/miasm/tools/seh_helper.py b/miasm/tools/seh_helper.py index f2fe6869..6b0fc9de 100644 --- a/miasm/tools/seh_helper.py +++ b/miasm/tools/seh_helper.py @@ -171,12 +171,10 @@ def build_fake_inordermodule(modules_name): o += (0x1000 - len(o))*"C" for i, m in enumerate(modules_name): #fname = os.path.join('win_dll', m) - if len(m) == 1: - fname, e = m, None - elif len(m) ==2: + if isinstance(m, tuple): fname, e = m else: - raise ValueError('unknown modules_name r'%m) + fname, e = m, None bname = os.path.split(fname)[1].lower() bname = "\x00".join(bname)+"\x00" print "add module", repr(bname) |