summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-28 14:55:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-28 14:55:06 +0300
commit1e49d6b2cb3812d8e80051cbb3d44891e6532825 (patch)
tree2ffb8e36641e063d625faece1d380f4ce833d1a6 /src
parenteccbb5307a048e70ac4adb0d3fd333be28245fa8 (diff)
funny, but without cbSize we have no need in MessageWindowInputData at all
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/msgs.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp
index 48b8832a70..80463aa7a5 100644
--- a/src/core/stdmsg/src/msgs.cpp
+++ b/src/core/stdmsg/src/msgs.cpp
@@ -495,17 +495,16 @@ static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam)
return 0;
}
-static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam)
+static INT_PTR GetWindowData(WPARAM hContact, LPARAM lParam)
{
- MessageWindowInputData *mwid = (MessageWindowInputData*)wParam;
- if (mwid == NULL || mwid->hContact == 0 || mwid->uFlags != MSG_WINDOW_UFLAG_MSG_BOTH)
+ if (hContact == 0)
return 1;
MessageWindowData *mwd = (MessageWindowData*)lParam;
if(mwd == NULL)
return 1;
- HWND hwnd = WindowList_Find(pci->hWindowList, mwid->hContact);
+ HWND hwnd = WindowList_Find(pci->hWindowList, hContact);
mwd->uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
mwd->hwndWindow = hwnd;
mwd->local = 0;