From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/gg.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Gadu-Gadu/src/gg.cpp') diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index feb65aa5d9..62b12b934b 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -65,9 +65,9 @@ TCHAR* ws_strerror(int code) TCHAR buff[128]; int len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, WSAGetLastError(), 0, buff, _countof(buff), NULL); if (len == 0) - mir_sntprintf(err_desc, _T("WinSock %u: Unknown error."), WSAGetLastError()); + mir_sntprintf(err_desc, L"WinSock %u: Unknown error.", WSAGetLastError()); else - mir_sntprintf(err_desc, _T("WinSock %d: %s"), WSAGetLastError(), buff); + mir_sntprintf(err_desc, L"WinSock %d: %s", WSAGetLastError(), buff); return err_desc; } @@ -174,20 +174,20 @@ void GGPROTO::cleanuplastplugin(DWORD version) debugLogA("cleanuplastplugin() 1: version=%d Cleaning junk avatar files from < 0.11.0.2", version); TCHAR avatarsPath[MAX_PATH]; - mir_sntprintf(avatarsPath, _T("%s\\%s"), VARST( _T("%miranda_avatarcache%")), m_tszUserName); + mir_sntprintf(avatarsPath, L"%s\\%s", VARST( L"%miranda_avatarcache%"), m_tszUserName); - debugLog(_T("cleanuplastplugin() 1: miranda_avatarcache = %s"), avatarsPath); + debugLog(L"cleanuplastplugin() 1: miranda_avatarcache = %s", avatarsPath); TCHAR spec[MAX_PATH + 10]; - mir_sntprintf(spec, _T("%s\\*.(null)"), avatarsPath); + mir_sntprintf(spec, L"%s\\*.(null)", avatarsPath); WIN32_FIND_DATA ffd; HANDLE hFind = FindFirstFile(spec, &ffd); if (hFind != INVALID_HANDLE_VALUE) { do { TCHAR filePathT [2*MAX_PATH + 10]; - mir_sntprintf(filePathT, _T("%s\\%s"), avatarsPath, ffd.cFileName); + mir_sntprintf(filePathT, L"%s\\%s", avatarsPath, ffd.cFileName); if (!_taccess(filePathT, 0)){ - debugLog(_T("cleanuplastplugin() 1: remove file = %s"), filePathT); + debugLog(L"cleanuplastplugin() 1: remove file = %s", filePathT); _tremove(filePathT); } } while (FindNextFile(hFind, &ffd) != 0); -- cgit v1.2.3