Skip to content

Commit

Permalink
Highlight raw data from PE sections
Browse files Browse the repository at this point in the history
Fixes #37
  • Loading branch information
Arnau478 committed Jul 4, 2024
1 parent a662a5a commit 2d8ac4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/pe.zig
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ pub fn getColors(colors: []hevi.PaletteColor, data: []const u8) void {
const section_header = reader.readStruct(std.coff.SectionHeader) catch return;
setRange(colors, fbs.pos - @sizeOf(std.coff.SectionHeader), @sizeOf(std.coff.SectionHeader), if (i % 2 == 0) .c4 else .c5);
setRange(colors, fbs.pos - @sizeOf(std.coff.SectionHeader), 8, if (i % 2 == 0) .c4_accent else .c5_accent);
_ = section_header;
setRange(colors, section_header.pointer_to_raw_data, section_header.size_of_raw_data, if (i % 2 == 0) .c4_alt else .c5_alt);
}
}

0 comments on commit 2d8ac4a

Please sign in to comment.