about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2014-12-03 19:52:24 +0100
committerserpilliere <serpilliere@users.noreply.github.com>2014-12-03 19:52:24 +0100
commite52881b8dee1dbbf6c09c03fbc738d5ac89fe811 (patch)
tree81916217b36463bab7a7cc8a6c67a4074ab72a45
parent6ec463b7410317db1fe1c4df3b9417de4a14c33c (diff)
parentb5ef677a36d82af8a93c0cbacf958e59fe5f79e1 (diff)
downloadmiasm-e52881b8dee1dbbf6c09c03fbc738d5ac89fe811.tar.gz
miasm-e52881b8dee1dbbf6c09c03fbc738d5ac89fe811.zip
Merge pull request #12 from commial/fix-warning
Kernel32: GetModuleFileName: Give a hint on warning (hcurmodule)
-rw-r--r--miasm2/os_dep/win_api_x86_32.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/os_dep/win_api_x86_32.py b/miasm2/os_dep/win_api_x86_32.py
index f09116e0..a4c07e59 100644
--- a/miasm2/os_dep/win_api_x86_32.py
+++ b/miasm2/os_dep/win_api_x86_32.py
@@ -805,7 +805,8 @@ def kernel32_GetModuleFileName(jitter, funcname, set_str):
                         for x in winobjs.runtime_dll.name2off.items()])
         p = name_inv[hmodule]
     else:
-        log.warning('unknown module %x' % hmodule)
+        log.warning('Unknown module 0x%x.' + \
+                        'Set winobjs.hcurmodule and retry' % hmodule)
         p = None
 
     if p is None: