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/AVS/src/image_utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/AVS/src/image_utils.cpp') diff --git a/plugins/AVS/src/image_utils.cpp b/plugins/AVS/src/image_utils.cpp index c478f8bd3e..61c548c96b 100644 --- a/plugins/AVS/src/image_utils.cpp +++ b/plugins/AVS/src/image_utils.cpp @@ -159,7 +159,7 @@ void SetHIMETRICtoDP(HDC hdc, SIZE* sz) sz->cy = pt.y; } -HBITMAP BmpFilterLoadBitmap(BOOL *bIsTransparent, const TCHAR *ptszFilename) +HBITMAP BmpFilterLoadBitmap(BOOL *bIsTransparent, const wchar_t *ptszFilename) { if (fei == NULL) return 0; @@ -203,14 +203,14 @@ static HWND hwndClui = 0; // PNG and BMP will be saved as 32bit images, jpg as 24bit with default quality (75) // returns 1 on success, 0 on failure -int BmpFilterSaveBitmap(HBITMAP hBmp, const TCHAR *ptszFile, int flags) +int BmpFilterSaveBitmap(HBITMAP hBmp, const wchar_t *ptszFile, int flags) { if (fei == NULL) return -1; - TCHAR tszFilename[MAX_PATH]; + wchar_t tszFilename[MAX_PATH]; if (!PathToAbsoluteT(ptszFile, tszFilename)) - _tcsncpy_s(tszFilename, ptszFile, _TRUNCATE); + wcsncpy_s(tszFilename, ptszFile, _TRUNCATE); if (mir_tstrlen(tszFilename) <= 4) return -1; @@ -551,7 +551,7 @@ BOOL MakeTransparentBkg(MCONTACT hContact, HBITMAP *hBitmap) ///////////////////////////////////////////////////////////////////////////////////////// // Other utils -int SaveAvatar(const char *protocol, const TCHAR *tszFileName) +int SaveAvatar(const char *protocol, const wchar_t *tszFileName) { INT_PTR result = CallProtoService(protocol, PS_SETMYAVATAR, 0, (LPARAM)tszFileName); if (result == CALLSERVICE_NOTFOUND) -- cgit v1.2.3