From e89f03b9f2af75ce231367befb584aaa948c420c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Jun 2015 16:34:53 +0000 Subject: strange service SRMsg/LaunchMessageWindow removed git-svn-id: http://svn.miranda-ng.org/main/trunk@14165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WhenWasIt/src/dlg_handlers.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'plugins/WhenWasIt') diff --git a/plugins/WhenWasIt/src/dlg_handlers.cpp b/plugins/WhenWasIt/src/dlg_handlers.cpp index 65ba3dcd34..8808b4b7b0 100644 --- a/plugins/WhenWasIt/src/dlg_handlers.cpp +++ b/plugins/WhenWasIt/src/dlg_handlers.cpp @@ -968,22 +968,15 @@ INT_PTR CALLBACK DlgProcUpcoming(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar return 0; } -void __cdecl OpenMessageWindowThread(void *data) -{ - MCONTACT hContact = (MCONTACT)data; - CallServiceSync(MS_MSG_SENDMESSAGE, hContact, 0); - CallServiceSync("SRMsg/LaunchMessageWindow", hContact, 0); -} - int HandlePopupClick(HWND hWnd, int action) { + MCONTACT hContact; + switch (action) { case 2: //OPEN MESSAGE WINDOW - { - MCONTACT hContact = (MCONTACT)PUGetContact(hWnd); + hContact = (MCONTACT)PUGetContact(hWnd); if (hContact) - HANDLE thread = mir_forkthread(OpenMessageWindowThread, (void*)hContact); - }//fallthrough + CallServiceSync(MS_MSG_SENDMESSAGE, hContact, 0); case 1: //DISMISS PUDeletePopup(hWnd); -- cgit v1.2.3