From 8f1e41b61140fdca624f2e8b25644d730502300f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 13 Jul 2012 08:05:19 +0000 Subject: =?UTF-8?q?crash=20fix=20for=20=D0=A2=D0=A3=D0=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/popup.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/NewEventNotify') 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) -- cgit v1.2.3