2019-11-13 17:08:19 -08:00
|
|
|
From 40630c14377561e90a4be405d2124338002a88f7 Mon Sep 17 00:00:00 2001
|
2014-05-02 11:50:58 -07:00
|
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
|
|
|
Date: Fri, 2 May 2014 20:46:19 +0200
|
2019-11-13 17:08:19 -08:00
|
|
|
Subject: [PATCH] user32: Decrease minimum SetTimer interval to 5 ms. (try 2)
|
2014-05-02 11:50:58 -07:00
|
|
|
|
|
|
|
---
|
2015-09-27 11:20:46 -07:00
|
|
|
dlls/user32/message.c | 2 +-
|
|
|
|
dlls/user32/tests/msg.c | 2 ++
|
|
|
|
2 files changed, 3 insertions(+), 1 deletion(-)
|
2014-05-02 11:50:58 -07:00
|
|
|
|
|
|
|
diff --git a/dlls/user32/message.c b/dlls/user32/message.c
|
2019-11-13 17:08:19 -08:00
|
|
|
index 1336865112a..cbe9920384f 100644
|
2014-05-02 11:50:58 -07:00
|
|
|
--- a/dlls/user32/message.c
|
|
|
|
+++ b/dlls/user32/message.c
|
2019-11-13 17:08:19 -08:00
|
|
|
@@ -4496,7 +4496,7 @@ UINT_PTR WINAPI SetCoalescableTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMER
|
2014-05-02 11:50:58 -07:00
|
|
|
|
|
|
|
if (proc) winproc = WINPROC_AllocProc( (WNDPROC)proc, FALSE );
|
|
|
|
|
|
|
|
- timeout = min( max( USER_TIMER_MINIMUM, timeout ), USER_TIMER_MAXIMUM );
|
|
|
|
+ timeout = min( max( 5, timeout ), USER_TIMER_MAXIMUM );
|
|
|
|
|
|
|
|
SERVER_START_REQ( set_win_timer )
|
|
|
|
{
|
2015-09-27 11:20:46 -07:00
|
|
|
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
|
2019-11-13 17:08:19 -08:00
|
|
|
index c0ba5834cf9..a6bc158e8a7 100644
|
2015-09-27 11:20:46 -07:00
|
|
|
--- a/dlls/user32/tests/msg.c
|
|
|
|
+++ b/dlls/user32/tests/msg.c
|
2019-11-13 17:08:19 -08:00
|
|
|
@@ -10282,6 +10282,7 @@ static void test_timers(void)
|
2015-09-27 11:20:46 -07:00
|
|
|
start = GetTickCount();
|
|
|
|
while (GetTickCount()-start < 1001 && GetMessageA(&msg, info.hWnd, 0, 0))
|
|
|
|
DispatchMessageA(&msg);
|
|
|
|
+todo_wine
|
|
|
|
ok(abs(count-TIMER_COUNT_EXPECTED) < TIMER_COUNT_TOLERANCE /* xp */
|
2019-11-13 17:08:19 -08:00
|
|
|
|| broken(abs(count-64) <= TIMER_COUNT_TOLERANCE) /* most common */
|
|
|
|
|| broken(abs(count-43) <= TIMER_COUNT_TOLERANCE) /* w2k3, win8 */,
|
|
|
|
@@ -10352,6 +10353,7 @@ static void test_timers_no_wnd(void)
|
2015-09-27 11:20:46 -07:00
|
|
|
start = GetTickCount();
|
|
|
|
while (GetTickCount()-start < 1001 && GetMessageA(&msg, NULL, 0, 0))
|
|
|
|
DispatchMessageA(&msg);
|
|
|
|
+todo_wine
|
|
|
|
ok(abs(count-TIMER_COUNT_EXPECTED) < TIMER_COUNT_TOLERANCE /* xp */
|
2019-11-13 17:08:19 -08:00
|
|
|
|| broken(abs(count-64) <= TIMER_COUNT_TOLERANCE) /* most common */
|
|
|
|
|| broken(abs(count-43) <= TIMER_COUNT_TOLERANCE) /* w1064v1809 */,
|
2014-05-02 11:50:58 -07:00
|
|
|
--
|
2019-11-13 17:08:19 -08:00
|
|
|
2.17.1
|
2014-05-02 11:50:58 -07:00
|
|
|
|