From c88b37809815f05309aa3615950927ecac8d9849 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 27 Apr 2013 13:03:15 +0200 Subject: Really unbreak wine this time --- ftnoir_protocol_wine/ftnoir_protocol_wine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftnoir_protocol_wine') diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp index 23d50fd1..60c09d98 100644 --- a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp +++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp @@ -41,7 +41,7 @@ #include /* For O_* constants */ /** constructor **/ -FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM)), shm(NULL), gameid(0), game_name_mutex() +FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM)), shm(NULL), gameid(0) { if (lck_shm.mem != (void*) -1) { shm = (WineSHM*) lck_shm.mem; @@ -82,7 +82,7 @@ void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose bool tmp1, tmp2; CSV::getGameData(id_str, tmp1, tmp2, shm->table, gamename); gameid = shm->gameid2 = shm->gameid; - QMutexLocker(&game_name_mutex); + QMutexLocker((QMutex*)&game_name_mutex); connected_game = gamename; } lck_shm.unlock(); -- cgit v1.2.3