summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-26 08:44:18 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-26 08:44:18 +0000
commitc1d2d5892eda3070975bbb82ac4f2e35d7bc139e (patch)
tree5902759b93eed462f1b8815a19b9f9e35d674046 /protocols/FacebookRM/src/proto.cpp
parentf5e38aaba573fa720894433ae746b3a7a741356e (diff)
Facebook: Various optimizations and cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index a3d0564ec9..ffd21442c9 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -367,7 +367,7 @@ int FacebookProto::GetInfo(MCONTACT hContact, int infoType)
INT_PTR FacebookProto::GetMyAwayMsg(WPARAM wParam, LPARAM lParam)
{
ptrT statusMsg(getTStringA("StatusMsg"));
- if (statusMsg == NULL || _tcslen(statusMsg) == 0)
+ if (statusMsg == NULL || statusMsg[0] == '\0')
return 0;
return (lParam & SGMA_UNICODE) ? (INT_PTR)mir_t2u(statusMsg) : (INT_PTR)mir_t2a(statusMsg);