mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
patterns/pe: Fixed off by one error in coff pattern (#299)
This commit is contained in:
@@ -164,7 +164,10 @@ bitfield SectionFlags {
|
||||
};
|
||||
|
||||
fn format_alignment(u8 alignment) {
|
||||
return 1 << alignment;
|
||||
if(alignment > 0) {
|
||||
return 1 << (alignment - 1);
|
||||
}
|
||||
return alignment;
|
||||
};
|
||||
|
||||
struct Relocations {
|
||||
|
||||
Reference in New Issue
Block a user