diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-23 11:27:13 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-23 11:27:13 +0000 |
commit | 465f5035c1059262b8e0b938b971f0a26015ca36 (patch) | |
tree | 0afd134d261311c96f629547c2a1348e8e905a65 /protocols/Xfire/src/Xfire_voicechat.cpp | |
parent | 3350965c81488d6019936b3d6bf3b96decaf6709 (diff) |
XFire: Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_voicechat.cpp')
-rw-r--r-- | protocols/Xfire/src/Xfire_voicechat.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/Xfire/src/Xfire_voicechat.cpp b/protocols/Xfire/src/Xfire_voicechat.cpp index 1d970d05ce..878ffc951c 100644 --- a/protocols/Xfire/src/Xfire_voicechat.cpp +++ b/protocols/Xfire/src/Xfire_voicechat.cpp @@ -197,11 +197,11 @@ HMODULE Xfire_voicechat::loadTSR(char* path, BOOL nolocaltest) { //deutsches sys?
tsrDLL = LoadLibrary(_T("C:\\Programme\\Teamspeak2_RC2\\client_sdk\\TSRemote.dll"));
- if (!tsrDLL)
+ if (!tsrDLL) {
XFireLog("TSRemote.dll load failed (using standard installationpath2)!");
-
- //aufgeben
- return NULL;
+ //aufgeben
+ return NULL;
+ }
}
}
@@ -238,6 +238,9 @@ BOOL Xfire_voicechat::checkforTS3(SendGameStatus2Packet* packet) { if (ipport->port == 0) {
//packet resetten
resetSendGameStatus2Packet(packet);
+ //unmap, handle schließem
+ UnmapViewOfFile(ipport);
+ CloseHandle(hMapObject);
//in db schreiben
writeToDatabase(packet);
return TRUE;
|