OUT-1009 Fix messageToSend assignment

Alex Sualdea 2022-11-14 13:59:18 +01:00
parent ca055115a0
commit f7ba48ce24
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include "resource.h" // main symbols
#include "stdafx.h"
#include "pEpComServerAdapter_i.h"
#include "pEp/Adapter.hxx"
#if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA)
#error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms."
@ -92,6 +93,7 @@ public:
std::lock_guard<std::mutex> lock(init_mutex);
try {
pEp::callback_dispatcher.add(CpEpEngine::messageToSend, CpEpEngine::notifyHandshake, CpEpEngine::on_sync_startup, CpEpEngine::on_sync_shutdown);
pEp::Adapter::_messageToSend = pEp::CallbackDispatcher::messageToSend;
::register_examine_function(session(), CpEpEngine::examine_identity, (void *)this);
::log_event(session(), "FinalConstruct", "pEp COM Adapter", NULL, NULL);