From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MobileState/src/clients.h | 2 +- plugins/MobileState/src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MobileState/src') diff --git a/plugins/MobileState/src/clients.h b/plugins/MobileState/src/clients.h index b9c87ae6e5..a7f6041ff2 100644 --- a/plugins/MobileState/src/clients.h +++ b/plugins/MobileState/src/clients.h @@ -19,7 +19,7 @@ #pragma once -static const TCHAR *clients[] = { +static const wchar_t *clients[] = { L"android", L"mobile", L"pda", diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 7b1b1ebceb..b18452a7d8 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -57,11 +57,11 @@ bool hasMobileClient(MCONTACT hContact, LPARAM) ptrT client(db_get_tsa(hContact, proto, "MirVer")); if (client) { // Make client lower-case - _tcslwr(client); + wcslwr(client); // Find whether this client contain something from clients list for (size_t i = 0; i < _countof(clients); i++) - if (_tcsstr(client, clients[i])) + if (wcsstr(client, clients[i])) return true; } -- cgit v1.2.3