summaryrefslogtreecommitdiff
path: root/plugins/Nudge
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-11 14:59:06 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-11 14:59:06 +0000
commitdb5554063520113e974bd839b42c5718e1541a38 (patch)
treea7e321f9f705a0179fda6f4b1657ec84a1b66015 /plugins/Nudge
parent51ede24c4c00a3fe3f65139dd2522d78d5a1e55b (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.cpp12
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;
}