summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_windows.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-11-26 20:43:36 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-11-26 20:43:36 +0000
commit7e78bc7d9b3530c999898dc56de668ac8a466102 (patch)
tree3c12ff3b015d5f97ad013ab95fb6323ebaefd879 /plugins/MirLua/src/m_windows.cpp
parente212cc9bf5a59c6ddb3a2aae11bb4e6a0618a21c (diff)
MirLua: more MT functionality
git-svn-id: http://svn.miranda-ng.org/main/trunk@15780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_windows.cpp')
-rw-r--r--plugins/MirLua/src/m_windows.cpp6
1 files changed, 5 insertions, 1 deletions
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));