summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-13 08:05:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-13 08:05:19 +0000
commit8f1e41b61140fdca624f2e8b25644d730502300f (patch)
treef809d914172667fa8d8ed9972d5028980163854e /plugins
parent2ab468f0ac05d1f257fbf8aa6add9512eabbcc20 (diff)
crash fix for ТУТ
git-svn-id: http://svn.miranda-ng.org/main/trunk@940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewEventNotify/popup.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/NewEventNotify/popup.cpp b/plugins/NewEventNotify/popup.cpp
index 772e1bc9a9..be2f1b2ba8 100644
--- a/plugins/NewEventNotify/popup.cpp
+++ b/plugins/NewEventNotify/popup.cpp
@@ -385,18 +385,17 @@ static TCHAR* GetEventPreview(DBEVENTINFO *dbei)
else commentFix = POPUP_COMMENT_OTHER;
}
- if (_tcslen(comment1) > 0) {
+ if ( lstrlen(comment1) > 0) {
mir_free(comment2);
return comment1;
}
- if (_tcslen(comment2) > 0) {
+ if ( lstrlen(comment2) > 0) {
mir_free(comment1);
return comment2;
}
mir_free(comment1);
mir_free(comment2);
-
- return TranslateTS( _A2T( commentFix));
+ return TranslateTS( mir_a2t(commentFix));
}
int PopupShow(PLUGIN_OPTIONS* pluginOptions, HANDLE hContact, HANDLE hEvent, UINT eventType)