The custom return value was lost when calling the original function. Save and restore our own return value, if we're about to call the original function.
https://github.com/Ayuto/DynamicHooks