filter bug fixed
This commit is contained in:
parent
c2f85a1e6b
commit
70ee2e34fc
@ -5896,7 +5896,8 @@ bool Waffle3Filter(LPVOID data, DWORD *size, HookParam *, BYTE)
|
||||
auto len = reinterpret_cast<size_t *>(size);
|
||||
static std::string prevText;
|
||||
|
||||
if (cpp_strnstr(text, "\\", *len))
|
||||
if (LPSTR bs=cpp_strnstr(text, "\\", *len))
|
||||
if ( bs > text && *--bs >= 65 && *bs <= 122) // garbage text
|
||||
return false;
|
||||
|
||||
if (prevText.find(text, 0, *len) != std::string::npos) // Check if the string is present in the previous one
|
||||
|
Loading…
Reference in New Issue
Block a user