about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2015-05-26 13:20:15 +0200
committerCamille Mougey <commial@gmail.com>2015-05-26 13:20:15 +0200
commit7816cf35749e3d282fd13881df6c1766a7cbf4bb (patch)
tree659727f28d46a52e262f0ab3cf855eaff36ec6af
parent027817a6f382d8c603631e459ac2fd7d73851bed (diff)
parent24a510039a646aab0cbb048083483e8aecea9597 (diff)
downloadmiasm-7816cf35749e3d282fd13881df6c1766a7cbf4bb.tar.gz
miasm-7816cf35749e3d282fd13881df6c1766a7cbf4bb.zip
Merge pull request #169 from serpilliere/fix_win_64b
Win_api: fix getprocaddr bad ptr tuncation
-rw-r--r--miasm2/os_dep/win_api_x86_32.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/miasm2/os_dep/win_api_x86_32.py b/miasm2/os_dep/win_api_x86_32.py
index 075663f2..335bac7d 100644
--- a/miasm2/os_dep/win_api_x86_32.py
+++ b/miasm2/os_dep/win_api_x86_32.py
@@ -912,8 +912,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: