dont copy infinitely when clipboard is selected with clipboard copy extension
This commit is contained in:
parent
54afbb24a5
commit
0f7fe46980
@ -2,7 +2,7 @@
|
||||
|
||||
bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
|
||||
{
|
||||
if (sentenceInfo["current select"] && sentenceInfo["hook address"] != -1)
|
||||
if (sentenceInfo["current select"] && sentenceInfo["process id"] != 0)
|
||||
{
|
||||
if (!OpenClipboard(FindWindowW(NULL, L"Textractor"))) return false;
|
||||
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, (sentence.size() + 2) * sizeof(wchar_t));
|
||||
|
Loading…
Reference in New Issue
Block a user