Browse Source

OUT-720: Catch errors during startup to pass the correct error code to the app

COM-121
Thomas 1 year ago
parent
commit
76d2af60bd
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      CpEpEngine.h

+ 4
- 4
CpEpEngine.h View File

@ -92,14 +92,14 @@ 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);
::register_examine_function(session(), CpEpEngine::examine_identity, (void *)this);
::log_event(session(), "FinalConstruct", "pEp COM Adapter", NULL, NULL);
}
catch (pEp::RuntimeError& e) {
HRESULT res = MAKE_HRESULT(1, FACILITY_ITF, (0xFFFF & e.status));
return res;
}
::register_examine_function(session(), CpEpEngine::examine_identity, (void *)this);
::log_event(session(), "FinalConstruct", "pEp COM Adapter", NULL, NULL);
}
return S_OK;
}


Loading…
Cancel
Save