summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-07-02 20:06:30 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-07-02 20:06:30 +0000
commit5e81836e642adcbed92f9fdaa32afb80546e3aee (patch)
tree52cc1f3dac8c0f0d0c99afefd7190072b9800bf1
parent598cb9cce233600f00ab457cf12a241e13362647 (diff)
Trying to fix a crash..hmm...
git-svn-id: http://svn.miranda-ng.org/main/trunk@726 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index c3ae93facb..7462c68890 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -2173,6 +2173,10 @@ static INT_PTR SI_ModifyStatusIcon(WPARAM wParam, LPARAM lParam)
HANDLE hContact = (HANDLE)wParam;
StatusIconData *sid = (StatusIconData *)lParam;
+
+ // return 0 on stupid calls :-P
+ if(!hContact || !sid || !sid->szModule) return 0;
+
struct TStatusBarIconNode *current = status_icon_list;
while (current) {