From 98a0a729e4ce884dae6409d32e41bfa8cd9ff8c6 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Sat, 8 Sep 2007 18:43:36 +0000 Subject: [PATCH] Enable the Windows Server 2003 behaviour for SetTimer. Finally, Matrix Screensaver does not work anymore under ReactOS, so we are compatible with Windows XP SP2 and Windows Server 2003 in this case :-D svn path=/trunk/; revision=28953 --- reactos/subsystems/win32/win32k/ntuser/timer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/timer.c b/reactos/subsystems/win32/win32k/ntuser/timer.c index 2c80d5ea19f..8675f946157 100644 --- a/reactos/subsystems/win32/win32k/ntuser/timer.c +++ b/reactos/subsystems/win32/win32k/ntuser/timer.c @@ -104,9 +104,9 @@ IntSetTimer(HWND Wnd, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, BOOL S MessageQueue = Window->MessageQueue; } -#if 1 +#if 0 - /* Win NT/2k/XP */ + /* Windows NT/2k/XP behaviour */ if (Elapse > 0x7fffffff) { DPRINT("Adjusting uElapse\n"); @@ -115,7 +115,7 @@ IntSetTimer(HWND Wnd, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, BOOL S #else - /* Win Server 2003 */ + /* Windows XP SP2 and Windows Server 2003 behaviour */ if (Elapse > 0x7fffffff) { DPRINT("Adjusting uElapse\n"); @@ -124,7 +124,7 @@ IntSetTimer(HWND Wnd, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, BOOL S #endif - /* Win 2k/XP */ + /* Windows 2k/XP and Windows Server 2003 SP1 behaviour */ if (Elapse < 10) { DPRINT("Adjusting uElapse\n");