From ca49edef11ff1b76ec9fd35b6f2db47a355c5afb Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 27 Jun 2007 06:44:51 +0000 Subject: fix for empty status messages from ersatz git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@214 4f64403b-2f21-0410-a795-97e2b3489a10 --- tipper/popwin.cpp | 4 ++-- tipper/tipper.mdsp | 6 +++--- tipper/version.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 509d134..8c5b2e9 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -114,9 +114,9 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa status_msg = (char *)CallService(MS_AWAYMSG_GETSTATUSMSG, status, 0); } - if(status_msg) swzText = a2t(status_msg); + if(status_msg && status_msg[0]) swzText = a2t(status_msg); - if(swzText) { + if(swzText && swzText[0]) { StripBBCodesInPlace(swzText); pwd->rows = (RowData *) realloc(pwd->rows, sizeof(RowData) * (pwd->row_count + 1)); diff --git a/tipper/tipper.mdsp b/tipper/tipper.mdsp index a5ec0e2..92faed2 100644 --- a/tipper/tipper.mdsp +++ b/tipper/tipper.mdsp @@ -104,8 +104,8 @@ extraResourceOptions= 1=resource.rc [Other] [History] -version.h,555 -popwin.cpp,2560 +m_tipper.h,760 +popwin.cpp,4176 tipper.cpp,1265 message_pump.cpp,4377 -m_tipper.h,694 +version.h,175 diff --git a/tipper/version.h b/tipper/version.h index f000466..467fb2e 100644 --- a/tipper/version.h +++ b/tipper/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 4 #define __RELEASE_NUM 0 -#define __BUILD_NUM 7 +#define __BUILD_NUM 8 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -- cgit v1.2.3