diff options
Diffstat (limited to 'plugins/TopToolBar/src/toolbarwnd.cpp')
-rw-r--r-- | plugins/TopToolBar/src/toolbarwnd.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/TopToolBar/src/toolbarwnd.cpp b/plugins/TopToolBar/src/toolbarwnd.cpp index 8962a36af0..f02645e039 100644 --- a/plugins/TopToolBar/src/toolbarwnd.cpp +++ b/plugins/TopToolBar/src/toolbarwnd.cpp @@ -238,14 +238,11 @@ LRESULT CALLBACK TopToolBarProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara /////////////////////////////////////////////////////////////////////////////////////////
-INT_PTR OnEventFire(WPARAM wParam, LPARAM)
+void CALLBACK OnEventFire()
{
- CallService(MS_SYSTEM_REMOVEWAIT, wParam, 0);
- CloseHandle((HANDLE)wParam);
-
HWND parent = pcli->hwndContactList;
if (parent == NULL) // no clist, no buttons
- return -1;
+ return;
WNDCLASS wndclass = {0};
wndclass.lpfnWndProc = TopToolBarProc;
@@ -284,8 +281,6 @@ INT_PTR OnEventFire(WPARAM wParam, LPARAM) // receive buttons
NotifyEventHooks(hTTBModuleLoaded, 0, 0);
-
- return 0;
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -309,6 +304,5 @@ int LoadBackgroundOptions() GetClientRect(g_ctrl->hWnd, &rc);
InvalidateRect(g_ctrl->hWnd, &rc, TRUE);
UpdateWindow(g_ctrl->hWnd);
-
return 0;
}
|