dont copy infinitely when clipboard is selected with clipboard copy extension

This commit is contained in:
Akash Mozumdar 2019-01-10 21:55:11 -05:00
parent 54afbb24a5
commit 0f7fe46980

View File

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