From 34906fa22948984c76b4c8a0eb0cdeae689266a8 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 11 May 2015 14:17:18 +0000 Subject: minus CreateThread git-svn-id: http://svn.miranda-ng.org/main/trunk@13531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Exchange/src/utils.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/Exchange') diff --git a/plugins/Exchange/src/utils.cpp b/plugins/Exchange/src/utils.cpp index 7f05636da4..9bf2c6277d 100644 --- a/plugins/Exchange/src/utils.cpp +++ b/plugins/Exchange/src/utils.cpp @@ -201,7 +201,7 @@ RECT AnchorCalcPos(HWND window, const RECT *rParent, const WINDOWPOS *parentPos, return rChild; } -DWORD WINAPI CheckEmailWorkerThread(LPVOID data) +void __cdecl CheckEmailWorkerThread(void *data) { mir_cslock lck(csCheck); @@ -211,14 +211,11 @@ DWORD WINAPI CheckEmailWorkerThread(LPVOID data) exchangeServer.Connect(bForceAttempt); exchangeServer.Check(bForceAttempt); - - return 0; } int ThreadCheckEmail(int bForceAttempt) { - DWORD idThread; - HANDLE hCheckThread = CreateThread(NULL, NULL, CheckEmailWorkerThread, (void *) bForceAttempt, 0, &idThread); + HANDLE hCheckThread = mir_forkthread(CheckEmailWorkerThread, (void *)bForceAttempt); CloseHandle(hCheckThread); return 0; -- cgit v1.2.3