MemoryModule icon indicating copy to clipboard operation
MemoryModule copied to clipboard

Fix SectionAlignment

Open HotKeyIt opened this issue 6 years ago • 2 comments

Some dlls do not use Native SectionAlignment, instead use SectionAlignment from PE. Issue 54 should be solved then: https://github.com/fancycode/MemoryModule/issues/54

HotKeyIt avatar Mar 15 '19 00:03 HotKeyIt

I have never seen such a DLL. But your fix is correct.

Elmue avatar Jul 02 '20 15:07 Elmue

does this work without changing result->pageSize = sysInfo.dwPageSize; to result->pageSize = old_header->OptionalHeader.SectionAlignment ?

module->pageSize is referenced multiple times, but now it's undefined because the call to GetNativeSystemInfo(&sysInfo); has been removed, or is SYSTEM_INFO sysInfo; initialized to zero ? I'm not sure

FuPeiJiang avatar Apr 13 '24 01:04 FuPeiJiang