Improve error message on bad detour argument setup

This commit is contained in:
Peace-Maker 2018-08-08 01:03:06 +02:00
parent e0583c514b
commit 382287b86a

View File

@ -193,7 +193,7 @@ void* __cdecl CHook::GetReturnAddress(void* pESP)
assert(r.found()); assert(r.found());
if (!r.found()) if (!r.found())
{ {
puts("ESP not present."); smutils->LogError(myself, "FATAL: Failed to find return address of original function. Check the arguments and return type of your detour setup.");
return NULL; return NULL;
} }