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()
} }
if (pNetEvent) if (pNetEvent)
{
pNetEvent->Release(); pNetEvent->Release();
}
if (pCPContainer) if (pCPContainer)
{
pCPContainer->Release(); pCPContainer->Release();
}
if (pNetworkListManager) if (pNetworkListManager)
{
pNetworkListManager->Release(); pNetworkListManager->Release();
}
if (pUnknown) if (pUnknown)
{
pUnknown->Release(); pUnknown->Release();
}
CoUninitialize(); CoUninitialize();
} }

3
Win32/Win32NetState.h

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

Loading…
Cancel
Save