summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-03 16:02:14 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-05-03 16:02:14 +0200
commit3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a (patch)
tree412a28ef6a572efc7039df1c363bf47a3dec4b19 /plugins/UserInfoEx/src
parent9a6f750a482d1d1ebf4281bb7bf8133e547ad438 (diff)
mir_forkThread<typename> - stronger typizatioin for thread function parameter
Diffstat (limited to 'plugins/UserInfoEx/src')
-rw-r--r--plugins/UserInfoEx/src/mir_contactqueue.cpp2
-rw-r--r--plugins/UserInfoEx/src/mir_contactqueue.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UserInfoEx/src/mir_contactqueue.cpp b/plugins/UserInfoEx/src/mir_contactqueue.cpp
index f74a5c1795..9b49a2c261 100644
--- a/plugins/UserInfoEx/src/mir_contactqueue.cpp
+++ b/plugins/UserInfoEx/src/mir_contactqueue.cpp
@@ -38,7 +38,7 @@ CContactQueue::CContactQueue(int initialSize) :
_hEvent = CreateEvent(nullptr, TRUE, FALSE, nullptr);
_status = RUNNING;
- mir_forkthread((pThreadFunc)CContactQueue::ThreadProc, this);
+ mir_forkThread<CContactQueue>(CContactQueue::ThreadProc, this);
}
CContactQueue::~CContactQueue()
diff --git a/plugins/UserInfoEx/src/mir_contactqueue.h b/plugins/UserInfoEx/src/mir_contactqueue.h
index ce1e388f80..f40553ede6 100644
--- a/plugins/UserInfoEx/src/mir_contactqueue.h
+++ b/plugins/UserInfoEx/src/mir_contactqueue.h
@@ -138,7 +138,7 @@ protected:
// This is a static method to redirect the thread's callback function
// to the desired class object.
- static void ThreadProc(CContactQueue* obj)
+ static void __cdecl ThreadProc(CContactQueue* obj)
{
obj->Thread();
}