Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Drifter321 committed Jan 29, 2018
1 parent fbebcae commit 69b433c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions vhook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ void *Callback(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
ret = CallVFunction<void *>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_ChangedOverride:
if(dg->returnType != ReturnType_Void)
Expand Down Expand Up @@ -382,7 +381,6 @@ void *Callback(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
CallVFunction<void *>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_Override:
if(dg->returnType != ReturnType_Void)
Expand Down Expand Up @@ -436,7 +434,6 @@ void *Callback(DHooksCallback *dg, void **argStack)
g_SHPtr->DoRecall();
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
g_SHPtr->EndContext(NULL);
}
break;
default:
Expand Down Expand Up @@ -538,7 +535,6 @@ float Callback_float(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
*(float *)ret = CallVFunction<float>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_ChangedOverride:
if(dg->returnType != ReturnType_Void)
Expand All @@ -559,7 +555,6 @@ float Callback_float(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
CallVFunction<float>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_Override:
if(dg->returnType != ReturnType_Void)
Expand Down Expand Up @@ -697,7 +692,6 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
*vec_result = CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_ChangedOverride:
if(dg->returnType != ReturnType_Void)
Expand All @@ -718,7 +712,6 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_Override:
if(dg->returnType != ReturnType_Void)
Expand Down Expand Up @@ -847,7 +840,6 @@ string_t *Callback_stringt(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
*string_result = CallVFunction<string_t>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_ChangedOverride:
if(dg->returnType != ReturnType_Void)
Expand All @@ -868,7 +860,6 @@ string_t *Callback_stringt(DHooksCallback *dg, void **argStack)
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
CallVFunction<SDKVector>(dg, paramStruct, g_SHPtr->GetIfacePtr());
g_SHPtr->EndContext(NULL);
break;
case MRES_Override:
if(dg->returnType != ReturnType_Void)
Expand Down

0 comments on commit 69b433c

Please sign in to comment.