From 1039b2829a264280493ba0fa979214fe024dc70c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 17:06:04 +0300 Subject: WORD -> uint16_t --- plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/Modules') diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp index 9078149efe..cd7a031286 100755 --- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp +++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp @@ -15,7 +15,7 @@ static HWND luaM_checkhwnd(lua_State *L, int idx) /***********************************************/ -EXTERN_C WINUSERAPI int WINAPI MessageBoxTimeoutA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType, WORD wLanguageId, DWORD dwMilliseconds); +EXTERN_C WINUSERAPI int WINAPI MessageBoxTimeoutA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType, uint16_t wLanguageId, DWORD dwMilliseconds); #define MB_TIMEDOUT 32000 @@ -815,7 +815,7 @@ static int global_CreateProcess(lua_State *L) si.dwFlags = (DWORD)luaL_checknumber(L, -1); } else if (!mir_strcmp(key, "wShowWindow")) { - si.wShowWindow = (WORD)luaL_checknumber(L, -1); + si.wShowWindow = (uint16_t)luaL_checknumber(L, -1); } else if (!mir_strcmp(key, "hStdInput")) { long h = (long)luaL_checknumber(L, -1); -- cgit v1.2.3