diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 14:59:06 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 14:59:06 +0000 |
commit | db5554063520113e974bd839b42c5718e1541a38 (patch) | |
tree | a7e321f9f705a0179fda6f4b1657ec84a1b66015 /plugins/Nudge | |
parent | 51ede24c4c00a3fe3f65139dd2522d78d5a1e55b (diff) |
minus CreateThread
git-svn-id: http://svn.miranda-ng.org/main/trunk@13539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge')
-rw-r--r-- | plugins/Nudge/src/shake.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/Nudge/src/shake.cpp b/plugins/Nudge/src/shake.cpp index 44d44ff919..8ebd3a97f1 100644 --- a/plugins/Nudge/src/shake.cpp +++ b/plugins/Nudge/src/shake.cpp @@ -17,26 +17,23 @@ void CShake::Save(void) db_set_dw(NULL, MODULENAME, "MoveChat", this->nMoveChat);
}
-DWORD WINAPI ShakeChatWindow(LPVOID Param)
+void __cdecl ShakeChatWindow(void *Param)
{
HWND hWnd = (HWND)Param;
shake.ShakeChat(hWnd);
- return 1;
}
-DWORD WINAPI ShakeClistWindow(LPVOID Param)
+void __cdecl ShakeClistWindow(void *Param)
{
HWND hWnd = (HWND)Param;
shake.ShakeClist(hWnd);
- return 0;
}
INT_PTR ShakeClist(WPARAM wParam, LPARAM lParam)
{
HWND hWnd = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
- DWORD tid;
- CreateThread(NULL, 0, ShakeClistWindow, (LPVOID)hWnd, 0, &tid);
+ mir_forkthread(ShakeClistWindow, (void*)hWnd);
return 0;
}
@@ -44,7 +41,6 @@ INT_PTR ShakeChat(WPARAM wParam, LPARAM lParam) {
if (((HANDLE)wParam) == NULL) return -1;
- DWORD tid;
//char srmmName[100];
MessageWindowData mwd;
MessageWindowInputData mwid;
@@ -65,7 +61,7 @@ INT_PTR ShakeChat(WPARAM wParam, LPARAM lParam) HWND hWnd = mwd.hwndWindow;
while ((parent = GetParent(hWnd)) != 0) hWnd = parent; // ensure we have the top level window (need parent window for scriver & tabsrmm)
- CreateThread(NULL, 0, ShakeChatWindow, (LPVOID)hWnd, 0, &tid);
+ mir_forkthread(ShakeChatWindow, (void*)hWnd);
return 0;
}
|