mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-26 13:14:13 +08:00
Update textthread.cpp
This commit is contained in:
parent
1fdd650147
commit
23289ffa4c
@ -56,10 +56,14 @@ void TextThread::Push(BYTE* data, int length)
|
||||
length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (auto converted = commonparsestring(data,length,&hp,Host::defaultCodepage)) buffer.append(converted.value());
|
||||
auto converted = commonparsestring(data,length,&hp,Host::defaultCodepage);
|
||||
if(converted)
|
||||
{
|
||||
buffer.append(converted.value());
|
||||
if (hp.type & FULL_STRING && converted.value().size()>1) buffer.push_back(L'\n');
|
||||
}
|
||||
else Host::AddConsoleOutput(INVALID_CODEPAGE);
|
||||
if (hp.type & FULL_STRING) buffer.push_back(L'\n');
|
||||
|
||||
lastPushTime = GetTickCount64();
|
||||
|
||||
if (filterRepetition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user