From 9b7aa7edb89bd1296898ad17e079c9cdd93be988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 7 May 2024 00:48:12 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/windows.py b/LunaTranslator/LunaTranslator/windows.py index 1dfc673a..ef7ca49d 100644 --- a/LunaTranslator/LunaTranslator/windows.py +++ b/LunaTranslator/LunaTranslator/windows.py @@ -228,7 +228,7 @@ _GetDeviceCaps.argtypes = c_int, c_int _SetWindowPos = _user32.SetWindowPos _SetWindowPos.argtypes = c_int, c_void_p, c_int, c_int, c_int, c_int, c_uint _GetWindowText = _user32.GetWindowTextW -_GetWindowText.argtypes = c_int, c_wchar_p, c_int +_GetWindowText.argtypes = HWND, c_wchar_p, c_int _GetWindowTextLength = _user32.GetWindowTextLengthW _MoveWindow = _user32.MoveWindow _MoveWindow.argtypes = c_int, c_int, c_int, c_int, c_int, c_bool