about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2014-09-05 13:27:45 +0200
committerCamille Mougey <camille.mougey@cea.fr>2014-09-05 13:27:45 +0200
commit888bf4c53530e896439192946acbb9bae6149171 (patch)
tree699acc9f6b5c086292967730f07c347074f82774
parent6e09df71a333bf87cd68c2d08ad068a3e501462d (diff)
downloadmiasm-888bf4c53530e896439192946acbb9bae6149171.tar.gz
miasm-888bf4c53530e896439192946acbb9bae6149171.zip
WinApi: Fix alloc in GlobalAlloc
Diffstat (limited to '')
-rw-r--r--miasm2/jitter/os_dep/win_api_x86_32.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/jitter/os_dep/win_api_x86_32.py b/miasm2/jitter/os_dep/win_api_x86_32.py
index 51215115..9a35d62b 100644
--- a/miasm2/jitter/os_dep/win_api_x86_32.py
+++ b/miasm2/jitter/os_dep/win_api_x86_32.py
@@ -304,7 +304,7 @@ def kernel32_HeapFree(myjit):
 def kernel32_GlobalAlloc(myjit):
     ret_ad, args = myjit.func_args_stdcall(2)
     uflags, msize = args
-    alloc_addr = get_next_alloc_addr(msize)
+    alloc_addr = alloc_mem(myjit, msize)
     myjit.func_ret_stdcall(ret_ad, alloc_addr)