readd wolfrpg2

This commit is contained in:
Akash Mozumdar 2018-11-19 08:15:38 -05:00
parent 523008d7e0
commit 95ca747912

View File

@ -8745,9 +8745,10 @@ struct TextListElement // ecx, this structure saved a list of element
bool isValid() const bool isValid() const
{ {
return flag1 == 0 && flag2 == 0 && flag3 == 0 && flag4 == 0 // Artikash 11/18/2018: I'm not sure why those checks were ever there, but they prevented this hook from working on RJ232953
&& size > 0 && size < capacity return /*flag1 == 0 && flag2 == 0 && flag3 == 0 && flag4 == 0
&& !::IsBadReadPtr(text, capacity) && size == ::strlen(text); && */size > 0 && size < capacity
&& !::IsBadReadPtr(text, capacity) /*&& size == ::strlen(text)*/;
//&& (quint8)*text > 127; //&& (quint8)*text > 127;
} }
}; };