Skip to content

Commit

Permalink
fix: replace obsolete 'kernel32-sys' dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
darfink committed Oct 21, 2020
1 parent d651621 commit f2c3f4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ crate-type = ["cdylib"]
udis = { package = "libudis86-sys", version = "0.2.1" }

[target."cfg(windows)".dev-dependencies]
winapi = { version = "0.3.7", features = ["minwindef", "windef", "winnt"] }
kernel32-sys = "0.2.2"
winapi = { version = "0.3.7", features = ["minwindef", "windef", "winnt", "libloaderapi"] }
2 changes: 1 addition & 1 deletion examples/messageboxw_detour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
//!
//! Ensure the crate is compiled as a 'cdylib' library to allow C interop.
use detour::static_detour;
use kernel32::{GetModuleHandleW, GetProcAddress};
use std::error::Error;
use std::{ffi::CString, iter, mem};
use winapi::ctypes::c_int;
use winapi::shared::minwindef::{BOOL, DWORD, HINSTANCE, LPVOID, TRUE, UINT};
use winapi::shared::windef::HWND;
use winapi::um::libloaderapi::{GetModuleHandleW, GetProcAddress};
use winapi::um::winnt::{DLL_PROCESS_ATTACH, LPCWSTR};

static_detour! {
Expand Down

0 comments on commit f2c3f4c

Please sign in to comment.