Whenever I try and hook a function that returns a pointer (ie. memcpy) the application segfaults when throw_hook is called.