Fix not being able to block void functions.

This commit is contained in:
Dr!fter
2015-06-05 08:44:28 -04:00
parent 9c95698c36
commit 957228443b
+6
View File
@@ -396,6 +396,12 @@ void *Callback(DHooksCallback *dg, void **argStack)
dg->plugin_callback->GetParentRuntime()->GetDefaultContext()->ThrowNativeError("Tried to override return value without return value being set");
}
}
else
{
g_SHPtr->DoRecall();
g_SHPtr->SetRes(MRES_SUPERCEDE);
mres = MRES_SUPERCEDE;
}
break;
default:
g_SHPtr->SetRes(MRES_IGNORED);