From 69a76759950ed18b002f174c1a1f06752d41a51b Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 24 Jul 2024 04:56:41 -0700 Subject: [PATCH] pe: force consistent resource name casing (#14) --- lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib.rs b/lib.rs index 165badb..9e96201 100644 --- a/lib.rs +++ b/lib.rs @@ -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()), );