Skip to content

Commit

Permalink
Merge pull request #24 from AlexKnauth/deps
Browse files Browse the repository at this point in the history
Update dependencies libproc, bindgen
  • Loading branch information
acj authored Sep 26, 2023
2 parents 793e29f + 7aecea1 commit f7434a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ libc = "0.2.54"
[target.'cfg(target_os="macos")'.dependencies]
anyhow = "1.0.40"
mach2 = "0.4.0"
libproc = "0.12.0"
libproc = "0.14.2"

[target.'cfg(windows)'.dependencies]
winapi = {version = "0.3", features = ["tlhelp32", "processthreadsapi", "handleapi", "impl-default", "dbghelp", "memoryapi", "sysinfoapi"]}

[target.'cfg(target_os="freebsd")'.build-dependencies]
bindgen = { version = "0.60.1", optional = true }
bindgen = { version = "0.68.1", optional = true }

[features]
default = ["generate-bindings"]
Expand Down
4 changes: 3 additions & 1 deletion src/win_maps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ fn get_process_page_ranges(pid: Pid) -> io::Result<Vec<PageRange>> {
});
}

address = meminfo.BaseAddress.add(meminfo.RegionSize);
address = (meminfo.BaseAddress as *mut u8)
.add(meminfo.RegionSize)
.cast(); // as winapi::um::winnt::PVOID;
}

CloseHandle(process);
Expand Down

0 comments on commit f7434a7

Please sign in to comment.