diff --git a/Cargo.lock b/Cargo.lock index 989a780..8485bce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,7 +68,7 @@ dependencies = [ [[package]] name = "gmod" -version = "0.1.0" +version = "0.1.2" dependencies = [ "cstr", "ctor", diff --git a/gmod/Cargo.toml b/gmod/Cargo.toml index 10fcad6..9cc8752 100644 --- a/gmod/Cargo.toml +++ b/gmod/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gmod" -version = "0.1.1" +version = "0.1.2" authors = ["William Venner "] edition = "2018" license = "MIT" diff --git a/gmod/src/hax.rs b/gmod/src/hax.rs index 0d2ebbd..0a9078b 100644 --- a/gmod/src/hax.rs +++ b/gmod/src/hax.rs @@ -65,7 +65,7 @@ macro_rules! __hook_func { /// Common pattern for detouring. macro_rules! find_gmod_signature { (($library:ident, $library_path:ident), @EXPORT = $export:literal) => { - $library.get($export).ok().map(|func: Symbol<'static, _>| *func) + $library.get(concat!($export, '\0').as_bytes()).ok().map(|func: ::gmod::libloading::Symbol<'_, _>| *func) }; (($library:ident, $library_path:ident), @SIG = $sig:literal) => {