diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-09-05 13:27:45 +0200 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-09-05 13:27:45 +0200 |
| commit | 888bf4c53530e896439192946acbb9bae6149171 (patch) | |
| tree | 699acc9f6b5c086292967730f07c347074f82774 | |
| parent | 6e09df71a333bf87cd68c2d08ad068a3e501462d (diff) | |
| download | miasm-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.py | 2 |
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) |