From 7b3c7af8134506479498df8ef343e67fd2e9d919 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 25 Jan 2016 09:59:57 +0100 Subject: [PATCH] user32: Test error returned in out of timers case. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/user32/tests/msg.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 7d6c99acede..cdc0364479c 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -8763,9 +8763,11 @@ static void test_timers(void) static void test_timers_no_wnd(void) { + static UINT_PTR ids[0xffff]; UINT_PTR id, id2; DWORD start; MSG msg; + int i; count = 0; id = SetTimer(NULL, 0, 100, callback_count); @@ -8800,6 +8802,18 @@ static void test_timers_no_wnd(void) count, TIMER_COUNT_EXPECTED); KillTimer(NULL, id); /* Note: SetSystemTimer doesn't support a NULL window, see test_timers */ + + /* Check what happens when we're running out of timers */ + for (i=0; i 0) KillTimer(NULL, ids[--i]); } static void test_timers_exception(DWORD code) -- 2.11.4.GIT