From 78ac37cc16584eecb54258bf68fe2eee4385b2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 1 Dec 2014 13:32:32 +0000 Subject: 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 --- plugins/TabSRMM/src/msgs.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/TabSRMM/src/msgs.cpp') 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; -- cgit v1.2.3