From 1e49d6b2cb3812d8e80051cbb3d44891e6532825 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Mar 2017 14:55:06 +0300 Subject: funny, but without cbSize we have no need in MessageWindowInputData at all --- plugins/Nudge/src/shake.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/Nudge') diff --git a/plugins/Nudge/src/shake.cpp b/plugins/Nudge/src/shake.cpp index 50982fdde2..6e71d703bc 100644 --- a/plugins/Nudge/src/shake.cpp +++ b/plugins/Nudge/src/shake.cpp @@ -39,15 +39,8 @@ INT_PTR ShakeChat(WPARAM wParam, LPARAM) { if (((HANDLE)wParam) == NULL) return -1; - //char srmmName[100]; MessageWindowData mwd; - mwd.hContact = db_mc_tryMeta(wParam); - mwd.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH; - - MessageWindowInputData mwid; - mwid.hContact = mwd.hContact; - mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH; - CallService(MS_MSG_GETWINDOWDATA, (WPARAM)&mwid, (LPARAM)&mwd); + CallService(MS_MSG_GETWINDOWDATA, db_mc_tryMeta(wParam), (LPARAM)&mwd); HWND parent; HWND hWnd = mwd.hwndWindow; -- cgit v1.2.3