diff options
-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;
}
|