summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-11-25 20:29:32 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-11-25 20:29:32 +0000
commit91d5b91fe12c9733db9fd4d8eb84bfbe674b0a2c (patch)
tree30abd84eb2aa65aa9e9b2509fe3d16df4340f685 /plugins/TabSRMM/src/chat
parent98c9aad15f13fe27c6a456836c88b94e364a5068 (diff)
TabSRMM null ptr fixes and code cleanup
require for review. git-svn-id: http://svn.miranda-ng.org/main/trunk@11065 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat')
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp
index 8b247b793d..90ace97da2 100644
--- a/plugins/TabSRMM/src/chat/window.cpp
+++ b/plugins/TabSRMM/src/chat/window.cpp
@@ -182,8 +182,7 @@ static BOOL CheckCustomLink(HWND hwndDlg, POINT* ptClient, UINT uMsg, WPARAM wPa
}
bIsCustomLink = (cpMin < cpMax);
- }
- while (FALSE);
+ } while (FALSE);
if (TextFont) TextFont->Release();
if (TextRange) TextRange->Release();
@@ -3007,7 +3006,7 @@ LABEL_SHOWWINDOW:
mi->idleTimeStamp = time(0);
mi->lastIdleCheck = 0;
pci->SM_BroadcastMessage(si->pszModule, GC_UPDATESTATUSBAR, 0, 1, TRUE);
- if (dat && dat->pContainer)
+ if (dat->pContainer)
if (fSound && !nen_options.iNoSounds && !(dat->pContainer->dwFlags & CNT_NOSOUND))
SkinPlaySound("ChatSent");