about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 b6813efc..24ab3ea2 100644
--- a/miasm2/jitter/os_dep/win_api_x86_32.py
+++ b/miasm2/jitter/os_dep/win_api_x86_32.py
@@ -1159,7 +1159,7 @@ def ntdll_RtlInitAnsiString(myjit):
     s = get_str_ansi(myjit, ad_str)
     l = len(s)
     print "string", l, s
-    myjit.vm.vm_set_mem(ad_ctx, pw(l) + pw(l + 1) + pck32(ad_str))
+    myjit.vm.vm_set_mem(ad_ctx, pck16(l) + pck16(l + 1) + pck32(ad_str))
     myjit.func_ret_stdcall(ret_ad, 0)