diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-20 03:22:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-20 03:22:11 +0000 |
commit | 1f70e7a998a41fa0c85b129eb4584d44c166036c (patch) | |
tree | 021781c7012cab171160f7e4314cb1b3d4099c42 /plugins/Scriver/src | |
parent | 019fa8250d990b0e804eb6933aeba34951e6577e (diff) |
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
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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);
|