diff options
| author | Caroline Leman <CarolineLe@users.noreply.github.com> | 2020-05-14 13:20:10 +0200 |
|---|---|---|
| committer | Caroline Leman <CarolineLe@users.noreply.github.com> | 2020-05-14 13:20:10 +0200 |
| commit | 76cd244e4cf7ef411c50668423edac8750340a25 (patch) | |
| tree | c649074b2e55d1e1a3a1af4162554283646015fc | |
| parent | d7bf203cbf7c849c290afc3ce9828c6ae9b9f3a0 (diff) | |
| download | miasm-76cd244e4cf7ef411c50668423edac8750340a25.tar.gz miasm-76cd244e4cf7ef411c50668423edac8750340a25.zip | |
Win_api: fix argv index in shell32_CommandLineToArgvW
Diffstat (limited to '')
| -rw-r--r-- | miasm/os_dep/win_api_x86_32.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/os_dep/win_api_x86_32.py b/miasm/os_dep/win_api_x86_32.py index 9bf3975b..7472ae79 100644 --- a/miasm/os_dep/win_api_x86_32.py +++ b/miasm/os_dep/win_api_x86_32.py @@ -1124,7 +1124,7 @@ def shell32_CommandLineToArgvW(jitter): jitter.vm.set_u32(addr_ret + 4 * i, addr + o) o += len(t)*2 + 2 - jitter.vm.set_u32(addr_ret + 4 * i, 0) + jitter.vm.set_u32(addr_ret + 4 * (i+1), 0) jitter.vm.set_u32(args.pnumargs, len(tks)) jitter.func_ret_stdcall(ret_ad, addr_ret) |