View Single Post
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 10-03-2018 , 00:06   Re: how do i detour the function has variable argument?
Reply With Quote #3

Adding a va_list parameter isn't going to help and trying to pass one to the original function is definitely going to crash.

You might just be able to pass what you get back from vprintf (like DETOUR_MEMBER_CALL(PrintIfWatched)("%s", buffer) might work).

Last edited by Fyren; 10-03-2018 at 00:07. Reason: closing paren
Fyren is offline