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 --- plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MirLua/Modules/WinAPI') diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp index 7aef66d263..b6d77a2973 100644 --- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp +++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp @@ -62,8 +62,8 @@ static int lua_FindIterator(lua_State *L) } } - if (!mir_tstrcmpi(ffd.cFileName, _T(".")) || - !mir_tstrcmpi(ffd.cFileName, _T("..")) || + if (!mir_tstrcmpi(ffd.cFileName, L".") || + !mir_tstrcmpi(ffd.cFileName, L"..") || (ffd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) { lua_pushlightuserdata(L, hFind); @@ -1708,14 +1708,14 @@ static int global_GetOpenFileName(lua_State *L) { _A2T tszExt(lua_tostring(L, 1)); - TCHAR buff[MAX_PATH] = _T(""); + TCHAR buff[MAX_PATH] = L""; OPENFILENAME ofn = { 0 }; ofn.lStructSize = sizeof(ofn); ofn.lpstrFile = buff; ofn.nMaxFile = _countof(buff); ofn.lpstrDefExt = tszExt; - ofn.lpstrFilter = _T("\0\0"); + ofn.lpstrFilter = L"\0\0"; if (GetOpenFileName(&ofn)) lua_pushstring(L, T2Utf(buff)); -- cgit v1.2.3