Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compiler errors for Rust 1.73.0 #7

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dinvoke_rs/dinvoke/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ pub fn get_function_address_by_ordinal(module_base_address: isize, ordinal: u32)
/// }
/// ```
pub fn ldr_get_procedure_address (module_handle: isize, function_name: &str, ordinal: u32) -> isize {

#![allow(invalid_reference_casting)]
unsafe
{
let ret: Option<i32>;
Expand Down
2 changes: 2 additions & 0 deletions dinvoke_rs/dmanager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ impl Manager {

pub fn map_module (&mut self, address: i64) -> Result<(),String>
{
#![allow(invalid_reference_casting)]
unsafe
{
if self.payloads.contains_key(&address)
Expand Down Expand Up @@ -143,6 +144,7 @@ impl Manager {

pub fn hide (&mut self, address: i64) -> Result<(),String>
{
#![allow(invalid_reference_casting)]
unsafe
{
if self.payloads.contains_key(&address)
Expand Down
1 change: 1 addition & 0 deletions dinvoke_rs/manualmap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ pub fn add_runtime_table(pe_info: &PeMetadata, image_ptr: *mut c_void)
/// pointer to the base address where the module is mapped in memory.
pub fn set_module_section_permissions(pe_info: &PeMetadata, image_ptr: *mut c_void) -> Result<(),String>
{
#![allow(invalid_reference_casting)]
unsafe
{
let base_of_code;
Expand Down