Browse Source

[win32] fix warning in NetState

Signed-off-by: r4sas <r4sas@i2pmail.org>
pull/1941/merge
R4SAS 7 months ago
parent
commit
c4bbe2bb4a
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 8
      Win32/Win32NetState.cpp
  2. 3
      Win32/Win32NetState.h

8
Win32/Win32NetState.cpp

@ -73,16 +73,24 @@ void UnSubscribeFromEvents() @@ -73,16 +73,24 @@ void UnSubscribeFromEvents()
}
if (pNetEvent)
{
pNetEvent->Release();
}
if (pCPContainer)
{
pCPContainer->Release();
}
if (pNetworkListManager)
{
pNetworkListManager->Release();
}
if (pUnknown)
{
pUnknown->Release();
}
CoUninitialize();
}

3
Win32/Win32NetState.h

@ -15,10 +15,11 @@ @@ -15,10 +15,11 @@
#include "Log.h"
#include "Transports.h"
class CNetworkListManagerEvent : public INetworkListManagerEvents
class CNetworkListManagerEvent final : public INetworkListManagerEvents
{
public:
CNetworkListManagerEvent() : m_ref(1) { }
~CNetworkListManagerEvent() { }
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject)
{

Loading…
Cancel
Save