adding HRESULT code

COM-121
Volker Birk 7 years ago
parent 0b589dfe6f
commit fe6ac673b2

@ -16,10 +16,15 @@ class CpEpCOMServerAdapterModule : public ATL::CAtlExeModuleT< CpEpCOMServerAdap
public:
HRESULT PreMessageLoop(int nShowCmd)
{
ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >::PreMessageLoop(nShowCmd);
HRESULT result = ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >::PreMessageLoop(nShowCmd);
assert(result == S_OK);
if (result != S_OK)
return result;
gatekeeper_thread = new thread(gatekeeper, this);
gatekeeper_thread->detach();
return S_OK;
}
DECLARE_LIBID(LIBID_pEpCOMServerAdapterLib)

Loading…
Cancel
Save