about summary refs log tree commit diff stats
diff options
context:
space:
mode:
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)