Fix that when using the same instance of stub, piling the same function twice, calling set (inconsistent piling functions twice), decomposing the instance of stub, or calling reset with the same instance of stub, restoring the previous function address is the function address of the first piling, not the original function address, which may cause crash and inconsistent with the expected result. Only the original address is saved every time.
Fix that when using the same instance of stub, piling the same function twice, calling set (inconsistent piling functions twice), decomposing the instance of stub, or calling reset with the same instance of stub, restoring the previous function address is the function address of the first piling, not the original function address, which may cause crash and inconsistent with the expected result. Only the original address is saved every time.