From 1f70e7a998a41fa0c85b129eb4584d44c166036c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 20 Dec 2014 03:22:11 +0000 Subject: Scriver: workaround crash when calling MS_MSG_SETSTATUSTEXT for group chat contact - this needs to be fixed better! git-svn-id: http://svn.miranda-ng.org/main/trunk@11540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/msgs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index a1db3be6ff..9d762aaf57 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -326,6 +326,12 @@ static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam) static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam) { + // FIXME: Temporary workaround for crashing in x64 version (setting statusbar for group chats didn't work this way anyway) + MCONTACT hContact = wParam; + char *szProto = GetContactProto(hContact); + if (szProto && db_get_b(hContact, szProto, "ChatRoom", 0)) + return 1; + HWND hwnd = WindowList_Find(g_dat.hMessageWindowList, wParam); if (hwnd == NULL) hwnd = SM_FindWindowByContact(wParam); -- cgit v1.2.3