summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-12-01 13:32:32 +0000
committerRobert Pösel <robyer@seznam.cz>2014-12-01 13:32:32 +0000
commit78ac37cc16584eecb54258bf68fe2eee4385b2a2 (patch)
tree7521a40b4ec8550a16328ff8c8eee8490e7fe77a /plugins/TabSRMM
parent927bc2d0f988d32505b35ed8c793211a17c36c94 (diff)
TabSRMM: Fix potential crash when setting statusbar text when TWindowData doesn't exists yet
git-svn-id: http://svn.miranda-ng.org/main/trunk@11197 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index afe1c7d294..0b88f1ef4a 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -115,6 +115,9 @@ static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam)
// service function. Sets a status bar text for a contact
static void SetStatusTextWorker(TWindowData *dat, StatusTextData *st)
{
+ if (!dat)
+ return;
+
// delete old custom data
if (dat->sbCustom) {
delete dat->sbCustom;