diff --git a/pupy/packages/windows/all/uidle.py b/pupy/packages/windows/all/uidle.py index 303cd089..8c673cc3 100644 --- a/pupy/packages/windows/all/uidle.py +++ b/pupy/packages/windows/all/uidle.py @@ -13,10 +13,10 @@ GetLastInputInfo = windll.user32.GetLastInputInfo if hasattr(windll.kernel32, 'GetTickCount64'): from ctypes import c_ulonglong GetTickCount = windll.kernel32.GetTickCount64 - GetTickCount.reestype = c_ulonglong + GetTickCount.restype = c_ulonglong else: GetTickCount = windll.kernel32.GetTickCount - GetTickCount.reestype = c_uint + GetTickCount.restype = c_uint def get_gui_idle(display=None): lastInputInfo = LASTINPUTINFO()