diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2013-01-18 20:06:45 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2013-01-18 20:06:45 +0000 |
| commit | 58aabf08b77d221489f10e274812ec60917c21a8 (patch) | |
| tree | b946f82269be87d83f086167c762c362e734c5bb /lib/interception/interception_win.h | |
| parent | 37dfff057418e02f8e5322da12684dd927e3d881 (diff) | |
Notes
Diffstat (limited to 'lib/interception/interception_win.h')
| -rw-r--r-- | lib/interception/interception_win.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/interception/interception_win.h b/lib/interception/interception_win.h index 9d1586ecb1739..c64af1baffe74 100644 --- a/lib/interception/interception_win.h +++ b/lib/interception/interception_win.h @@ -23,19 +23,22 @@ namespace __interception { // returns true if a function with the given name was found. -bool GetRealFunctionAddress(const char *func_name, void **func_addr); +bool GetRealFunctionAddress(const char *func_name, uptr *func_addr); // returns true if the old function existed, false on failure. -bool OverrideFunction(void *old_func, void *new_func, void **orig_old_func); +bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func); } // namespace __interception #if defined(_DLL) # define INTERCEPT_FUNCTION_WIN(func) \ - ::__interception::GetRealFunctionAddress(#func, (void**)&REAL(func)) + ::__interception::GetRealFunctionAddress( \ + #func, (::__interception::uptr*)&REAL(func)) #else # define INTERCEPT_FUNCTION_WIN(func) \ - ::__interception::OverrideFunction((void*)func, (void*)WRAP(func), \ - (void**)&REAL(func)) + ::__interception::OverrideFunction( \ + (::__interception::uptr)func, \ + (::__interception::uptr)WRAP(func), \ + (::__interception::uptr*)&REAL(func)) #endif #endif // INTERCEPTION_WIN_H |
