filter bug fixed

This commit is contained in:
Blu3train 2023-12-23 11:37:59 +01:00
parent c2f85a1e6b
commit 70ee2e34fc

View File

@ -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