Improved YU-RIS6 engine filter

This commit is contained in:
Blu3train 2024-01-21 23:05:44 +01:00
parent 6ea0b84869
commit 67c0679693

View File

@ -6457,7 +6457,7 @@ static bool Yuris6Filter(LPVOID data, DWORD *size, HookParam *, BYTE)
auto len = reinterpret_cast<size_t *>(size);
static std::string prevText;
if (prevText.find(text, 0, *len) != std::string::npos) // Check if the string is present in the previous one
if (prevText.length()==*len && prevText.find(text, 0, *len) != std::string::npos) // Check if the string is present in the previous one
return false;
prevText.assign(text, *len);