diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-14 16:34:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-14 16:34:53 +0000 |
commit | e89f03b9f2af75ce231367befb584aaa948c420c (patch) | |
tree | 3d1a5dd4352fd91b7455a5e54f74527bdae21274 /plugins/WhenWasIt | |
parent | 99f9bd745de40f36efc32fe1d7b0a4a4f5566635 (diff) |
strange service SRMsg/LaunchMessageWindow removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhenWasIt')
-rw-r--r-- | plugins/WhenWasIt/src/dlg_handlers.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
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);
|