adding HRESULT code
authorVolker Birk <vb@pep-project.org>
Sun, 19 Jun 2016 08:20:37 +0200
changeset 901328c5a129ea
parent 89 56b26b1c4f3b
child 91 0cddbdb0973f
adding HRESULT code
pEpCOMServerAdapter.cpp
     1.1 --- a/pEpCOMServerAdapter.cpp	Sun Jun 19 08:17:04 2016 +0200
     1.2 +++ b/pEpCOMServerAdapter.cpp	Sun Jun 19 08:20:37 2016 +0200
     1.3 @@ -16,10 +16,15 @@
     1.4  public:
     1.5      HRESULT PreMessageLoop(int nShowCmd)
     1.6      {
     1.7 -        ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >::PreMessageLoop(nShowCmd);
     1.8 +        HRESULT result = ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >::PreMessageLoop(nShowCmd);
     1.9 +        assert(result == S_OK);
    1.10 +        if (result != S_OK)
    1.11 +            return result;
    1.12  
    1.13          gatekeeper_thread = new thread(gatekeeper, this);
    1.14          gatekeeper_thread->detach();
    1.15 +
    1.16 +        return S_OK;
    1.17      }
    1.18  
    1.19  	DECLARE_LIBID(LIBID_pEpCOMServerAdapterLib)