From 0c3fbeb0557c85cbe7c103053c869b6e3b42fab6 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Sat, 4 Oct 2014 12:59:00 +0000 Subject: VKontakte: Upload files support part 1 (photo) version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@10683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocols/VKontakte/src/misc.cpp') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 2a3b930fa2..75e23daac8 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -479,4 +479,14 @@ void CVkProto::SetMirVer(MCONTACT hContact, int platform) if (bSetFlag) setTString(hContact, "MirVer", MirVer.GetBuffer()); +} + +bool tlstrstr(TCHAR* _s1, TCHAR* _s2) +{ + TCHAR s1[1024], s2[1024]; + mir_sntprintf(s1, SIZEOF(s1), _T("%s"), _s1); + mir_sntprintf(s2, SIZEOF(s2), _T("%s"), _s2); + CharLowerBuff(s1, SIZEOF(s1)); + CharLowerBuff(s2, SIZEOF(s2)); + return (_tcsstr(s1, s2) == NULL); } \ No newline at end of file -- cgit v1.2.3