The test case should use the target address which is where the detour is installed instead of the original address, which is where the original function assembly is relocated to. This allows testing recursive calls at the same address inside a hook handler and making sure the detour handler doesn't cause an infinite recursion with the call.
The test case should use the target address which is where the detour is installed instead of the original address, which is where the original function assembly is relocated to. This allows testing recursive calls at the same address inside a hook handler and making sure the detour handler doesn't cause an infinite recursion with the call.