diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 14:17:18 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 14:17:18 +0000 |
commit | 34906fa22948984c76b4c8a0eb0cdeae689266a8 (patch) | |
tree | d3ba8e92b5550788b4f3c57662923283e49f9002 | |
parent | 1109d71b7b36490f797f996672fb745c736fa109 (diff) |
minus CreateThread
git-svn-id: http://svn.miranda-ng.org/main/trunk@13531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Exchange/src/utils.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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;
|