Remove the ability to set string_t return values.
This commit is contained in:
@@ -91,20 +91,16 @@ class HookReturnStruct
|
||||
public:
|
||||
~HookReturnStruct()
|
||||
{
|
||||
if(this->type != ReturnType_CharPtr && this->type != ReturnType_StringPtr && this->type != ReturnType_Vector && this->type != ReturnType_VectorPtr)
|
||||
if(this->type != ReturnType_CharPtr && this->type != ReturnType_Vector && this->type != ReturnType_VectorPtr)
|
||||
{
|
||||
free(this->newResult);
|
||||
}
|
||||
else if(this->isChanged)
|
||||
{
|
||||
if(this->type != ReturnType_CharPtr)
|
||||
if(this->type == ReturnType_CharPtr)
|
||||
{
|
||||
delete *(char **)this->newResult;
|
||||
}
|
||||
else if(this->type != ReturnType_StringPtr)
|
||||
{
|
||||
delete *(string_t **)this->newResult;
|
||||
}
|
||||
else if(this->type == ReturnType_Vector || this->type == ReturnType_VectorPtr)
|
||||
{
|
||||
delete *(Vector **)this->newResult;
|
||||
|
||||
Reference in New Issue
Block a user