From 957228443b025347936c97adcd6d5cdca7bf4c5b Mon Sep 17 00:00:00 2001 From: Dr!fter Date: Fri, 5 Jun 2015 08:44:28 -0400 Subject: [PATCH] Fix not being able to block void functions. --- vhook.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vhook.cpp b/vhook.cpp index b6f1e00..4ab2a9b 100644 --- a/vhook.cpp +++ b/vhook.cpp @@ -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);