pEpCOMServerAdapter.cpp
changeset 91 0cddbdb0973f
parent 90 1328c5a129ea
child 93 8bb66806109b
     1.1 --- a/pEpCOMServerAdapter.cpp	Sun Jun 19 08:20:37 2016 +0200
     1.2 +++ b/pEpCOMServerAdapter.cpp	Sun Jun 19 08:23:18 2016 +0200
     1.3 @@ -14,17 +14,10 @@
     1.4  class CpEpCOMServerAdapterModule : public ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >
     1.5  {
     1.6  public:
     1.7 -    HRESULT PreMessageLoop(int nShowCmd)
     1.8 +    CpEpCOMServerAdapterModule() : ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >(), gatekeeper_thread(NULL)
     1.9      {
    1.10 -        HRESULT result = ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >::PreMessageLoop(nShowCmd);
    1.11 -        assert(result == S_OK);
    1.12 -        if (result != S_OK)
    1.13 -            return result;
    1.14 -
    1.15          gatekeeper_thread = new thread(gatekeeper, this);
    1.16          gatekeeper_thread->detach();
    1.17 -
    1.18 -        return S_OK;
    1.19      }
    1.20  
    1.21  	DECLARE_LIBID(LIBID_pEpCOMServerAdapterLib)