forked from Public-Mirror/Textractor
whoops
This commit is contained in:
parent
effe03fd96
commit
68bafcdda7
@ -48,8 +48,7 @@ void TextThread::AddText(const BYTE* data, int len)
|
|||||||
flusher = std::thread([&]
|
flusher = std::thread([&]
|
||||||
{
|
{
|
||||||
ResetEvent(cancelFlushEvent);
|
ResetEvent(cancelFlushEvent);
|
||||||
WaitForSingleObject(cancelFlushEvent, FlushDelay);
|
if (WaitForSingleObject(cancelFlushEvent, FlushDelay) == WAIT_TIMEOUT) Flush();
|
||||||
Flush();
|
|
||||||
});
|
});
|
||||||
LOCK(ttMutex);
|
LOCK(ttMutex);
|
||||||
buffer += status & USING_UNICODE
|
buffer += status & USING_UNICODE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user