diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
commit | 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch) | |
tree | 2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/IEHistory/src/utils.cpp | |
parent | a61c8728b379057fe7f0a0d86fe0b037598229dd (diff) |
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
Diffstat (limited to 'plugins/IEHistory/src/utils.cpp')
-rw-r--r-- | plugins/IEHistory/src/utils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/IEHistory/src/utils.cpp b/plugins/IEHistory/src/utils.cpp index d34557b094..090033c533 100644 --- a/plugins/IEHistory/src/utils.cpp +++ b/plugins/IEHistory/src/utils.cpp @@ -78,10 +78,10 @@ int Info(char *title, char *format, ...) returns the name of a contact */ -TCHAR* GetContactName(MCONTACT contact) +wchar_t* GetContactName(MCONTACT contact) { ptrT name(Contact_GetInfo(CNF_DISPLAY, contact)); - return (name) ? _tcsdup(name) : NULL; + return (name) ? wcsdup(name) : NULL; } /* @@ -211,7 +211,7 @@ SearchResult SearchHistory(MCONTACT contact, MEVENT hFirstEvent, void *searchDat int index = 0; MEVENT hEvent = hFirstEvent; void *buffer = NULL; - TCHAR *search; + wchar_t *search; bool found = false; int oldSize, newSize; oldSize = newSize = 0; @@ -223,7 +223,7 @@ SearchResult SearchHistory(MCONTACT contact, MEVENT hFirstEvent, void *searchDat newSize = db_event_getBlobSize(hEvent); if (newSize > oldSize) { - buffer = (TCHAR *)realloc(buffer, newSize); + buffer = (wchar_t *)realloc(buffer, newSize); oldSize = newSize; } dbEvent.pBlob = (PBYTE)buffer; @@ -247,8 +247,8 @@ SearchResult SearchHistory(MCONTACT contact, MEVENT hFirstEvent, void *searchDat #else search = (char *) buffer; #endif - TCHAR *data = (TCHAR *)searchData; - TCHAR *tmp = _tcsstr(search, data); + wchar_t *data = (wchar_t *)searchData; + wchar_t *tmp = wcsstr(search, data); if (tmp) { found = true; |