summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/Xfire_voicechat.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-21 20:23:22 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-21 20:23:22 +0000
commit52824c91bac6d6cc0f04e242b07d9031477b6362 (patch)
tree3cafc4ce886f9066b50d4d32bfdda4c5c9f954f4 /protocols/Xfire/src/Xfire_voicechat.cpp
parentb4caa062df453412e7cafa5b96afab0b0c3a2940 (diff)
protocols cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6170 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_voicechat.cpp')
-rw-r--r--protocols/Xfire/src/Xfire_voicechat.cpp26
1 files changed, 6 insertions, 20 deletions
diff --git a/protocols/Xfire/src/Xfire_voicechat.cpp b/protocols/Xfire/src/Xfire_voicechat.cpp
index 7a3ce804d2..b11f280975 100644
--- a/protocols/Xfire/src/Xfire_voicechat.cpp
+++ b/protocols/Xfire/src/Xfire_voicechat.cpp
@@ -6,39 +6,25 @@ Xfire_voicechat::Xfire_voicechat() {
this->resetCurrentvoicestatus();
ipport=NULL;
tsrDLL=NULL;
- IpHlpApiDLL=NULL;
tsrGetServerInfo=NULL;
- GetExtendedTcpTable=NULL;
pid=0;
}
//dekonstruktor
-Xfire_voicechat::~Xfire_voicechat() {
+Xfire_voicechat::~Xfire_voicechat()
+{
//geladene tsr remote dll freigeben
if(tsrDLL) {
FreeLibrary(tsrDLL);
tsrDLL=NULL;
}
- //geladene iphlper freigeben
- if(IpHlpApiDLL) {
- FreeLibrary(IpHlpApiDLL);
- IpHlpApiDLL=NULL;
- }
}
//init
-void Xfire_voicechat::initVoicechat() {
+void Xfire_voicechat::initVoicechat()
+{
//tsremotedll laden
tsrDLL=this->loadTSR();
- //weitere dll's laden
- IpHlpApiDLL=LoadLibraryA("IpHlpApi.dll");
- if(IpHlpApiDLL) {
- GetExtendedTcpTable=(pGetExtendedTcpTable)GetProcAddress(IpHlpApiDLL,"GetExtendedTcpTable");
- }
- else
- {
- XFireLog("IpHlpApi.dll load failed!");
- }
}
//prüft ob das paket schonmal versendet wurde, soll unnötigen nwtraffic reduzieren, *ÜBERLEGUNG* ob wirklich notwendig
@@ -343,12 +329,12 @@ BOOL Xfire_voicechat::checkforMumble(SendGameStatus2Packet* packet) {
DWORD size=0;
MIB_TCPTABLE_OWNER_PID* ptab=NULL;
//tcptabelle holen
- this->GetExtendedTcpTable(NULL,&size,FALSE, AF_INET, TCP_TABLE_OWNER_PID_CONNECTIONS, 0);
+ GetExtendedTcpTable(NULL, &size, FALSE, AF_INET, TCP_TABLE_OWNER_PID_CONNECTIONS, 0);
//überhaupt was drin?
if(size) {
ptab=(MIB_TCPTABLE_OWNER_PID*)malloc(size);
//liste auslesen
- if(GetExtendedTcpTable(ptab,&size,FALSE, AF_INET, TCP_TABLE_OWNER_PID_CONNECTIONS, 0)==NO_ERROR)
+ if(GetExtendedTcpTable(ptab, &size, FALSE, AF_INET, TCP_TABLE_OWNER_PID_CONNECTIONS, 0) == NO_ERROR)
{
for(unsigned int i=0;i<ptab->dwNumEntries;i++)
{