From 5df6d44b96e14bd9a351971b76e1f25ce1305940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 15 May 2013 19:08:18 +0000 Subject: Fixes for Facebook and TabSRMM setting statusbar text. git-svn-id: http://svn.miranda-ng.org/main/trunk@4663 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 6d7de7f81f..65a1adea23 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -144,6 +144,13 @@ static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam) TWindowData *dat = (TWindowData*)GetWindowLongPtr(hwnd, GWLP_USERDATA); if (dat == NULL || (pContainer = dat->pContainer) == NULL) return 1; + + if (lParam == NULL) { + DM_UpdateLastMessage(dat); + return 0; + } + + _tcsncpy(dat->szStatusBar, (TCHAR *)lParam, SIZEOF(dat->szStatusBar)); } else { SESSION_INFO *si = SM_FindSessionByHCONTACT((HANDLE)wParam); -- cgit v1.2.3