Commit d6b83653 authored by Jean-Paul Saman's avatar Jean-Paul Saman

activex: stop processing events on closing ActiveX plugin

parent 18fe2d12
...@@ -163,10 +163,17 @@ DWORD WINAPI ThreadProcEventHandler(LPVOID lpParam) ...@@ -163,10 +163,17 @@ DWORD WINAPI ThreadProcEventHandler(LPVOID lpParam)
pCPC->_q_events.pop(); pCPC->_q_events.pop();
pCPC->_p_events->fireEvent(ev->_dispId, &ev->_dispParams); pCPC->_p_events->fireEvent(ev->_dispId, &ev->_dispParams);
delete ev; delete ev;
if (!pCPC->isRunning)
{
LeaveCriticalSection(&(pCPC->csEvents));
goto out;
}
} }
LeaveCriticalSection(&(pCPC->csEvents)); LeaveCriticalSection(&(pCPC->csEvents));
} }
out:
CoUninitialize(); CoUninitialize();
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment