Skip to content

Commit

Permalink
pe: force consistent resource name casing (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy authored Jul 24, 2024
1 parent 64f827f commit 69a7675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ impl<'a> PortableExecutable<'a> {
return Err(Error::InvalidObject("RCDATA is not a table"));
}
};
let name = name.to_uppercase();
rc_table.insert(
editpe::ResourceEntryName::from_string(name),
editpe::ResourceEntryName::from_string(name.clone()),
ResourceEntry::Table(ResourceTable::default()),
);

Expand Down

0 comments on commit 69a7675

Please # to comment.