From 868597861af9aeef8b8e9e7573f12a9c2193a7f0 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 21 Jul 2018 13:12:44 +0300 Subject: MirLua: winapi: current process id should return integer --- plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/Modules/WinAPI/src') diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp index b5184af254..b7d66f30d7 100644 --- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp +++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp @@ -38,7 +38,7 @@ static int lua_ShellExecute(lua_State *L) static int lua_FindIterator(lua_State *L) { HANDLE hFind = lua_touserdata(L, lua_upvalueindex(1)); - wchar_t* path = (wchar_t*)lua_touserdata(L, lua_upvalueindex(2)); + wchar_t *path = (wchar_t*)lua_touserdata(L, lua_upvalueindex(2)); WIN32_FIND_DATA ffd = { 0 }; if (hFind == nullptr) @@ -1700,7 +1700,7 @@ static int global_CoUninitialize(lua_State *) static int global_GetCurrentProcessId(lua_State *L) { DWORD pid = GetCurrentProcessId(); - lua_pushnumber(L, pid); + lua_pushinteger(L, pid); return 1; } -- cgit v1.2.3