diff options
| author | Caroline Leman <CarolineLe@users.noreply.github.com> | 2020-05-03 12:19:54 +0200 |
|---|---|---|
| committer | Caroline Leman <CarolineLe@users.noreply.github.com> | 2020-05-03 12:19:54 +0200 |
| commit | 04c17c687c2f0b3f4af474c50bd48f7d8c46663f (patch) | |
| tree | 401dcb5bebcdf8a68c518c215393567ed1934396 | |
| parent | 1f01f8f5369c74100e237c90f1262924e3478826 (diff) | |
| download | miasm-04c17c687c2f0b3f4af474c50bd48f7d8c46663f.tar.gz miasm-04c17c687c2f0b3f4af474c50bd48f7d8c46663f.zip | |
Win_seh: use ListEntry MemStruct
Diffstat (limited to '')
| -rw-r--r-- | miasm/os_dep/win_api_x86_32_seh.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/miasm/os_dep/win_api_x86_32_seh.py b/miasm/os_dep/win_api_x86_32_seh.py index 28699d68..90f4b39b 100644 --- a/miasm/os_dep/win_api_x86_32_seh.py +++ b/miasm/os_dep/win_api_x86_32_seh.py @@ -312,9 +312,11 @@ def set_link_list_entry(jitter, loaded_modules, modules_info, offset): prev_module_entry = peb_ldr_data_address + 0xC if i == len(loaded_modules) - 1: next_module_entry = peb_ldr_data_address + 0xC - jitter.vm.set_mem(cur_module_entry + offset, - (pck32(next_module_entry + offset) + - pck32(prev_module_entry + offset))) + + list_entry = ListEntry(jitter.vm, cur_module_entry + offset) + list_entry.flink = next_module_entry + offset + list_entry.blink = prev_module_entry + offset + def fix_InLoadOrderModuleList(jitter, modules_info): |