diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-17 20:53:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-17 20:53:52 +0000 |
commit | f6c842738792940ed5b91a5d8977b9e8d20337c0 (patch) | |
tree | 58735945361c1fc2052e67a87f35ce72c40d681c /plugins/TabSRMM/src/chat/services.cpp | |
parent | cf77bdeca036ce292aa334d352a194209a45cf3d (diff) |
tabSRMM highlights
git-svn-id: http://svn.miranda-ng.org/main/trunk@7698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/services.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/services.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/chat/services.cpp b/plugins/TabSRMM/src/chat/services.cpp index 5457c2edce..fc0aa1549b 100644 --- a/plugins/TabSRMM/src/chat/services.cpp +++ b/plugins/TabSRMM/src/chat/services.cpp @@ -166,7 +166,7 @@ HWND CreateNewRoom(TContainerData *pContainer, SESSION_INFO *si, BOOL bActivateT void ShowRoom(SESSION_INFO *si, WPARAM wp, BOOL bSetForeground)
{
- if (!si)
+ if (si == NULL)
return;
if (si->hWnd != NULL) {
@@ -174,10 +174,8 @@ void ShowRoom(SESSION_INFO *si, WPARAM wp, BOOL bSetForeground) return;
}
- TCHAR szName[CONTAINER_NAMELEN + 2];
+ TCHAR szName[CONTAINER_NAMELEN + 2]; szName[0] = 0;
TContainerData *pContainer = si->pContainer;
-
- szName[0] = 0;
if (pContainer == NULL) {
GetContainerNameForContact(si->hContact, szName, CONTAINER_NAMELEN);
if (!g_Settings.bOpenInDefault && !_tcscmp(szName, _T("default")))
|