diff options
author | aunsane <aunsane@gmail.com> | 2018-07-21 13:12:44 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-07-21 13:12:44 +0300 |
commit | 868597861af9aeef8b8e9e7573f12a9c2193a7f0 (patch) | |
tree | aa359da3aade84f0f7135d9c583cf38192dcd1b2 /plugins/MirLua | |
parent | 509fbd91ed545d05cc266a80ec19fe7b9c9d28db (diff) |
MirLua: winapi: current process id should return integer
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
}
|