From 7e78bc7d9b3530c999898dc56de668ac8a466102 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 26 Nov 2015 20:43:36 +0000 Subject: MirLua: more MT functionality git-svn-id: http://svn.miranda-ng.org/main/trunk@15780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_windows.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/MirLua/src/m_windows.cpp') diff --git a/plugins/MirLua/src/m_windows.cpp b/plugins/MirLua/src/m_windows.cpp index c42be30335..b78f9f7278 100644 --- a/plugins/MirLua/src/m_windows.cpp +++ b/plugins/MirLua/src/m_windows.cpp @@ -121,12 +121,16 @@ static int lua_FindIterator(lua_State *L) return lua_FindIterator(L); } + LARGE_INTEGER size; + size.HighPart = ffd.nFileSizeHigh; + size.LowPart = ffd.nFileSizeLow; + lua_newtable(L); lua_pushliteral(L, "Name"); lua_pushstring(L, T2Utf(ffd.cFileName)); lua_settable(L, -3); lua_pushliteral(L, "Size"); - lua_pushinteger(L, (ffd.nFileSizeHigh * (MAXDWORD + 1)) + ffd.nFileSizeLow); + lua_pushinteger(L, size.QuadPart); lua_settable(L, -3); lua_pushliteral(L, "IsFile"); lua_pushboolean(L, !(ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)); -- cgit v1.2.3