about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-05-22 18:33:28 +0200
committerserpilliere <fabrice.desclaux@cea.fr>2015-05-24 20:54:08 +0200
commitd4415735882b108bdc8b272230868c6280495c24 (patch)
tree8a4ab5a52e2de4c4eefffbd767ad4577a8af1bf9
parentf69ba70ca17155de58811b10f52b4c011865a21d (diff)
downloadmiasm-d4415735882b108bdc8b272230868c6280495c24.tar.gz
miasm-d4415735882b108bdc8b272230868c6280495c24.zip
Win_api: fix getprocaddr bad ptr tuncation
-rw-r--r--miasm2/os_dep/win_api_x86_32.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/os_dep/win_api_x86_32.py b/miasm2/os_dep/win_api_x86_32.py
index 075663f2..913a63cf 100644
--- a/miasm2/os_dep/win_api_x86_32.py
+++ b/miasm2/os_dep/win_api_x86_32.py
@@ -913,7 +913,7 @@ def kernel32_LoadLibraryExA(jitter):
 def kernel32_GetProcAddress(jitter):
     ret_ad, args = jitter.func_args_stdcall(["libbase", "fname"])
     # Ensure high-order WORD is 0
-    fname = args.fname & 0xFFFFFFFF
+    fname = args.fname
     if fname < 0x10000:
         fname = fname
     else: