← 返回首页
Fix SectionAlignment by HotKeyIt · Pull Request #94 · fancycode/MemoryModule · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Fix SectionAlignment#94

Open
HotKeyIt wants to merge 1 commit into
fancycode:masterfrom
HotKeyIt:master
Open

Fix SectionAlignment#94
HotKeyIt wants to merge 1 commit into
fancycode:masterfrom
HotKeyIt:master

Conversation

Copy link
Copy Markdown

HotKeyIt commented Mar 15, 2019
edited
Loading

Some dlls do not use Native SectionAlignment, instead use SectionAlignment from PE.
Issue 54 should be solved then: #54

Some dlls do not use Native SectionAlignment, instead use SectionAlignment from PE.
Copy link
Copy Markdown

Elmue commented Jul 2, 2020

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

Copy link
Copy Markdown

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Footer

© 2026 GitHub, Inc.