diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-28 14:55:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-28 14:55:06 +0300 |
commit | 1e49d6b2cb3812d8e80051cbb3d44891e6532825 (patch) | |
tree | 2ffb8e36641e063d625faece1d380f4ce833d1a6 /plugins/Scriver/src/msgs.cpp | |
parent | eccbb5307a048e70ac4adb0d3fd333be28245fa8 (diff) |
funny, but without cbSize we have no need in MessageWindowInputData at all
Diffstat (limited to 'plugins/Scriver/src/msgs.cpp')
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 30776f7aa5..b0c52cad36 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -283,19 +283,18 @@ static void RestoreUnreadMessageAlerts(void) }
}
-static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam)
+static INT_PTR GetWindowData(WPARAM hContact, LPARAM lParam)
{
- MessageWindowInputData *mwid = (MessageWindowInputData*)wParam;
- if (mwid == nullptr || mwid->hContact == 0 || mwid->uFlags != MSG_WINDOW_UFLAG_MSG_BOTH)
+ if (hContact == 0)
return 1;
MessageWindowData *mwd = (MessageWindowData*)lParam;
if (mwd == nullptr)
return 1;
- HWND hwnd = WindowList_Find(pci->hWindowList, mwid->hContact);
+ HWND hwnd = WindowList_Find(pci->hWindowList, hContact);
if (hwnd == nullptr)
- hwnd = SM_FindWindowByContact(mwid->hContact);
+ hwnd = SM_FindWindowByContact(hContact);
mwd->uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
mwd->hwndWindow = hwnd;
mwd->local = 0;
|