summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/Xfire_gamelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/Xfire_gamelist.cpp')
-rw-r--r--protocols/Xfire/src/Xfire_gamelist.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/Xfire/src/Xfire_gamelist.cpp b/protocols/Xfire/src/Xfire_gamelist.cpp
index 728c9c7bb9..4e98b8e381 100644
--- a/protocols/Xfire/src/Xfire_gamelist.cpp
+++ b/protocols/Xfire/src/Xfire_gamelist.cpp
@@ -52,7 +52,6 @@ Xfire_gamelist::Xfire_gamelist()
{
nextgameid = 0;
ingame = FALSE;
- InitializeCriticalSection(&gamlistMutex);
}
//dekonstruktor
@@ -62,7 +61,6 @@ Xfire_gamelist::~Xfire_gamelist() {
if (game) delete game;
}
gamelist.clear();
- DeleteCriticalSection(&gamlistMutex);
}
//hole das nächste game
@@ -97,9 +95,7 @@ BOOL Xfire_gamelist::getnextGame(Xfire_game**currentgame)
void Xfire_gamelist::Block(BOOL block)
{
if (block)
- EnterCriticalSection(&gamlistMutex);
- else
- LeaveCriticalSection(&gamlistMutex);
+ mir_cslock lck(gamlistMutex);
}
//fügt simple ein gameobject in den vector ein