Index: src/ch/ClipboardMonitor.cpp =================================================================== diff -u -rbeeac49d2e0888993bd231a4e5863c7f0741e154 -r55ef81d592f615cf6fdff83fab4850b40efaa15e --- src/ch/ClipboardMonitor.cpp (.../ClipboardMonitor.cpp) (revision beeac49d2e0888993bd231a4e5863c7f0741e154) +++ src/ch/ClipboardMonitor.cpp (.../ClipboardMonitor.cpp) (revision 55ef81d592f615cf6fdff83fab4850b40efaa15e) @@ -81,7 +81,7 @@ DWORD dwRes = WaitForSingleObject(m_hThread, 5000); CloseHandle(m_hThread); CloseHandle(m_hKillEvent); - m_hThread = NULL; + m_hThread = INVALID_HANDLE_VALUE; m_hKillEvent = NULL; m_pTasks = NULL; return dwRes == WAIT_OBJECT_0;