diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-04 18:26:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-04 18:26:00 +0000 |
commit | b3cbd75fb723cb396ad49b528e39df0b25c4c3f7 (patch) | |
tree | 696b50c3121dc8211be622523d07d4c91fb9a769 /plugins/TabSRMM/src/hotkeyhandler.cpp | |
parent | b3f2dd6e7b0ee526c8272fe8ad48cbeb4f51885a (diff) |
code reordering
git-svn-id: http://svn.miranda-ng.org/main/trunk@9413 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/hotkeyhandler.cpp')
-rw-r--r-- | plugins/TabSRMM/src/hotkeyhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/hotkeyhandler.cpp b/plugins/TabSRMM/src/hotkeyhandler.cpp index 8f06a703b7..d269befbeb 100644 --- a/plugins/TabSRMM/src/hotkeyhandler.cpp +++ b/plugins/TabSRMM/src/hotkeyhandler.cpp @@ -515,14 +515,14 @@ LONG_PTR CALLBACK HotkeyHandlerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP SendJob *job = sendQueue->getJobByIndex((int)wParam);
ACKDATA ack = {0};
- ack.hContact = job->hOwner;
+ ack.hContact = job->hContact;
ack.hProcess = job->hSendId;
ack.type = ACKTYPE_MESSAGE;
ack.result = ACKRESULT_SUCCESS;
- if (job->hOwner && job->iAcksNeeded && job->hOwner && job->iStatus == SendQueue::SQ_INPROGRESS) {
- if (IsWindow(job->hwndOwner))
- ::SendMessage(job->hwndOwner, HM_EVENTSENT, (WPARAM)MAKELONG(wParam, 0), (LPARAM)&ack);
+ if (job->hContact && job->iAcksNeeded && job->hContact && job->iStatus == SendQueue::SQ_INPROGRESS) {
+ if (IsWindow(job->hOwnerWnd))
+ ::SendMessage(job->hOwnerWnd, HM_EVENTSENT, (WPARAM)MAKELONG(wParam, 0), (LPARAM)&ack);
else
sendQueue->ackMessage(0, (WPARAM)MAKELONG(wParam, 0), (LPARAM)&ack);
}
|