From 20c9e07e20b6885c975e9467c2369065bc64def9 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: Sat, 3 Aug 2024 00:58:57 +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 390bf181..4c1370e6 100644 --- a/LunaTranslator/LunaTranslator/windows.py +++ b/LunaTranslator/LunaTranslator/windows.py @@ -193,7 +193,7 @@ _psapi = windll.Psapi _Advapi32 = windll.Advapi32 _GetWindowRect = _user32.GetWindowRect -_GetWindowRect.argtypes = c_int, POINTER(RECT) +_GetWindowRect.argtypes = HWND, POINTER(RECT) _GetForegroundWindow = _user32.GetForegroundWindow _WindowFromPoint = _user32.WindowFromPoint _WindowFromPoint.argtypes = (POINT,)