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