MCPcopy Create free account
hub / github.com/ammaarreshi/Generals-Mac-iOS-iPad / Shutdown_Chat

Function Shutdown_Chat

Core/Tools/PATCHGET/CHATAPI.cpp:943–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943void Shutdown_Chat(void)
944{
945 /*
946 /////AtlUnadvise(pChat, IID_IChatEvent, dwChatAdvise);
947
948 IConnectionPoint *pConnectionPoint=nullptr;
949 IConnectionPointContainer *pContainer=nullptr;
950 HRESULT hRes;
951
952 hRes=pChat->QueryInterface(IID_IConnectionPointContainer,(void**)&pContainer);
953 _ASSERTE(SUCCEEDED(hRes));
954 hRes=pContainer->FindConnectionPoint(IID_IChatEvent,&pConnectionPoint);
955 _ASSERTE(SUCCEEDED(hRes));
956 pConnectionPoint->Unadvise(dwChatAdvise);
957
958 pChat->Release();
959
960 /////delete(g_pChatSink); This appears to be bad....
961 // ADD g_pChatSink->Release();
962 // ADD pConnectionPoint->Release();
963 // ADD pContainer->Release();
964 */
965}
966
967
968

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected