From 95ca7479127759cbee5b9da7239deef94b604fac Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 19 Nov 2018 08:15:38 -0500 Subject: [PATCH] readd wolfrpg2 --- vnrhook/engine/engine.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vnrhook/engine/engine.cc b/vnrhook/engine/engine.cc index 5b90f73..39ab2ba 100644 --- a/vnrhook/engine/engine.cc +++ b/vnrhook/engine/engine.cc @@ -8745,9 +8745,10 @@ struct TextListElement // ecx, this structure saved a list of element bool isValid() const { - return flag1 == 0 && flag2 == 0 && flag3 == 0 && flag4 == 0 - && size > 0 && size < capacity - && !::IsBadReadPtr(text, capacity) && size == ::strlen(text); + // Artikash 11/18/2018: I'm not sure why those checks were ever there, but they prevented this hook from working on RJ232953 + return /*flag1 == 0 && flag2 == 0 && flag3 == 0 && flag4 == 0 + && */size > 0 && size < capacity + && !::IsBadReadPtr(text, capacity) /*&& size == ::strlen(text)*/; //&& (quint8)*text > 127; } };