Skip to content

Commit

Permalink
build error due to implicit cast (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmanc committed Feb 24, 2024
1 parent 76e1ecb commit 115a195
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 34 deletions.
81 changes: 49 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion process_migration/src/process_migration_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn inject_and_migrate(shellcode: &[u8], target_process: &str) {
if element == 0 {
break;
}
process_name.push(element as char);
process_name.push(element as u8 as char);
}
if process_name.contains(target_process) {
pid = process_entry.th32ProcessID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn inject_and_migrate(shellcode: &[u8], target_process: &str) {
if element == 0 {
break;
}
process_name.push(element as char);
process_name.push(element as u8 as char);
}
if process_name.contains(target_process) {
pid = process_entry.th32ProcessID;
Expand Down

0 comments on commit 115a195

Please sign in to comment.