From 99b0796eb6cd0bcc7d7facdd1a1a6834cca588dd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Mar 2013 13:43:44 +0000 Subject: various mir_forkthread quirks git-svn-id: http://svn.miranda-ng.org/main/trunk@3975 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_gettextasync.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Clist_modern/src/modern_gettextasync.cpp') diff --git a/plugins/Clist_modern/src/modern_gettextasync.cpp b/plugins/Clist_modern/src/modern_gettextasync.cpp index 7ec2ca1c3c..1244e8b49c 100644 --- a/plugins/Clist_modern/src/modern_gettextasync.cpp +++ b/plugins/Clist_modern/src/modern_gettextasync.cpp @@ -76,7 +76,7 @@ static BOOL gtaGetItem(GTACHAINITEM * mpChain) return FALSE; } -static int gtaThreadProc(void * lpParam) +static unsigned __stdcall gtaThreadProc(void * lpParam) { HWND hwnd = pcli->hwndContactList; struct SHORTDATA data = {0}; @@ -178,7 +178,7 @@ void InitCacheAsync() { InitializeCriticalSection(>aCS); hgtaWakeupEvent = CreateEvent(NULL,FALSE,FALSE,NULL); - g_dwGetTextAsyncThreadID = (DWORD)mir_forkthread((pThreadFunc)gtaThreadProc,0); + mir_forkthreadex(gtaThreadProc, 0, &g_dwGetTextAsyncThreadID); HookEvent(ME_SYSTEM_PRESHUTDOWN, gtaOnModulesUnload); } -- cgit v1.2.3