Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7b3c7af8
Commit
7b3c7af8
authored
Jan 25, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Test error returned in out of timers case.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cefdbd59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
msg.c
dlls/user32/tests/msg.c
+14
-0
No files found.
dlls/user32/tests/msg.c
View file @
7b3c7af8
...
...
@@ -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
<
sizeof
(
ids
)
/
sizeof
(
ids
[
0
]);
i
++
)
{
SetLastError
(
0xdeadbeef
);
ids
[
i
]
=
SetTimer
(
NULL
,
0
,
USER_TIMER_MAXIMUM
,
tfunc
);
if
(
!
ids
[
i
])
break
;
}
ok
(
i
!=
sizeof
(
ids
)
/
sizeof
(
ids
[
0
]),
"all timers were created successfully
\n
"
);
ok
(
GetLastError
()
==
ERROR_NO_MORE_USER_HANDLES
||
broken
(
GetLastError
()
==
0xdeadbeef
),
"GetLastError() = %d
\n
"
,
GetLastError
());
while
(
i
>
0
)
KillTimer
(
NULL
,
ids
[
--
i
]);
}
static
void
test_timers_exception
(
DWORD
code
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment