summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/services.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-04-27 09:32:02 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-04-27 09:32:02 +0000
commit1273b126536581cc9710bed760ab60a82946e857 (patch)
treeb6baa262bbde938d673bcc8319d11095e85fb207 /plugins/SmileyAdd/src/services.cpp
parent47f4d5c03a16988eab91de5e26218f8e0d35b8b8 (diff)
SmileyAdd: crashfix
git-svn-id: http://svn.miranda-ng.org/main/trunk@13195 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/services.cpp')
-rw-r--r--plugins/SmileyAdd/src/services.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp
index a250bf10bb..1ab16d58b6 100644
--- a/plugins/SmileyAdd/src/services.cpp
+++ b/plugins/SmileyAdd/src/services.cpp
@@ -54,7 +54,8 @@ SmileyPackType* GetSmileyPack(const char* proto, MCONTACT hContact, SmileyPackCT
categoryName = _T("AllProto");
categoryName += dbv.ptszVal;
db_free(&dbv);
- if (g_SmileyCategories.GetSmileyCategory(categoryName)->GetFilename().IsEmpty())
+ CMString categoryFileName = g_SmileyCategories.GetSmileyCategory(categoryName) ? g_SmileyCategories.GetSmileyCategory(categoryName)->GetFilename() : _T("");
+ if (categoryFileName.IsEmpty())
categoryName = A2T_SM(protonam);
}
else