fix build panic on ntCRT, ntAPC, ntFIBER

template_name_for_injection in tools.rs was missing arms for ntcrt,
ntapc and ntfiber, so post-build copy panicked after a clean compile
and the GUI showed a generic build panicked message. Added the arms.
This commit is contained in:
staffs@smukx.site
2026-06-20 13:42:22 +05:30
parent 5b225e6a35
commit 81e3be94b7
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "RustPacker"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["smukx <staffs@5mukx.site>"]
+4
View File
@@ -60,9 +60,13 @@ pub fn get_source_binary_filename(order: &Order, output_folder: &Path) -> PathBu
fn template_name_for_injection(injection_id: &str) -> &'static str {
// The compiled binary inherits its name from the template folder.
// Must stay in sync with each injection's `template_dir` in technique.toml.
match injection_id {
"syscrt" => "sysCRT",
"wincrt" => "winCRT",
"ntcrt" => "ntCRT",
"ntapc" => "ntAPC",
"ntfiber" => "ntFIBER",
"earlycascade" => "ntEarlyCascade",
"enum_calendar_info" => "callbackExec",
"enum_desktops" => "callbackExec",