Skip to content

Commit

Permalink
pe: fix resource name casing (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy authored Jul 24, 2024
1 parent f046f8c commit 64f827f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

if utils::is_pe(&exe) {
PortableExecutable::from(&exe)?
.write_resource("_SUI", data)?
.write_resource("__SUI", data)?
.build(&mut out)?;
} else if utils::is_macho(&exe) {
Macho::from(exe)?
Expand Down
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ mod pe {
};

pub fn find_section(section_name: &str) -> Option<&[u8]> {
let Ok(section_name) = CString::new(section_name.to_uppercase()) else {
let Ok(section_name) = CString::new(section_name) else {
return None;
};

Expand Down

0 comments on commit 64f827f

Please # to comment.