From b63aeeb74dfeefd813bd14a63936db70715f205f Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 14 Jul 2007 13:56:24 +0000 Subject: [PATCH] fixing the limit of hover maxium time for SPI_SETMOUSEHOVERTIME see msdn : http://msdn2.microsoft.com/en-us/library/ms724947.aspx svn path=/trunk/; revision=27656 --- reactos/subsystems/win32/win32k/ntuser/misc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/misc.c b/reactos/subsystems/win32/win32k/ntuser/misc.c index 6a20d7cb046..c81e878e195 100644 --- a/reactos/subsystems/win32/win32k/ntuser/misc.c +++ b/reactos/subsystems/win32/win32k/ntuser/misc.c @@ -1062,13 +1062,24 @@ IntSystemParametersInfo( *((UINT*)pvParam) = CurInfo->MouseHoverTime; break; case SPI_SETMOUSEHOVERTIME: + /* see http://msdn2.microsoft.com/en-us/library/ms724947.aspx + * copy text from it, if some agument why xp and 2003 behovir diffent + * only if they do not have SP install + * " Windows Server 2003 and Windows XP: The operating system does not + * enforce the use of USER_TIMER_MAXIMUM and USER_TIMER_MINIMUM until + * Windows Server 2003 SP1 and Windows XP SP2 " + */ CurInfo = IntGetSysCursorInfo(WinStaObject); CurInfo->MouseHoverTime = uiParam; if(CurInfo->MouseHoverTime < USER_TIMER_MINIMUM) { CurInfo->MouseHoverTime = USER_TIMER_MINIMUM; } - /* FIXME limit the maximum time to 1000 ms? */ + if(CurInfo->MouseHoverTime > USER_TIMER_MAXIMUM) + { + CurInfo->MouseHoverTime = USER_TIMER_MAXIMUM; + } + break; case SPI_GETMOUSEHOVERWIDTH: CurInfo = IntGetSysCursorInfo(WinStaObject);