mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
readd wolfrpg2
This commit is contained in:
parent
523008d7e0
commit
95ca747912
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user