summaryrefslogtreecommitdiff
path: root/plugins/MirLua/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/Modules')
-rw-r--r--plugins/MirLua/Modules/WinAPI/src/winapi.cpp8
1 files changed, 4 insertions, 4 deletions
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));