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
e3566d82
Commit
e3566d82
authored
Feb 18, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Feb 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix timer tests to pass on windows 98.
parent
2b303707
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
timer.c
dlls/winmm/tests/timer.c
+13
-10
No files found.
dlls/winmm/tests/timer.c
View file @
e3566d82
...
...
@@ -33,23 +33,26 @@
#include "winmm_test.h"
TIMECAPS
tc
;
static
TIMECAPS
tc
;
void
test_timeGetDevCaps
()
static
void
test_timeGetDevCaps
()
{
MMRESULT
rc
;
rc
=
timeGetDevCaps
(
&
tc
,
0
);
ok
(
rc
==
TIMERR_NOCANDO
,
"timeGetDevCaps() returned %s, "
"should have returned TIMERR_NOCANDO
\n
"
,
mmsys_error
(
rc
));
ok
(
rc
==
TIMERR_NOCANDO
||
rc
==
MMSYSERR_INVALPARAM
,
"timeGetDevCaps() returned %s, should have returned TIMERR_NOCANDO "
"or MMSYSERR_INVALPARAM
\n
"
,
mmsys_error
(
rc
));
rc
=
timeGetDevCaps
(
0
,
sizeof
(
tc
));
ok
(
rc
==
TIMERR_NOCANDO
,
"timeGetDevCaps() returned %s, "
"should have returned TIMERR_NOCANDO
\n
"
,
mmsys_error
(
rc
));
ok
(
rc
==
TIMERR_NOCANDO
||
rc
==
TIMERR_STRUCT
,
"timeGetDevCaps() returned %s, should have returned TIMERR_NOCANDO "
"or TIMERR_STRUCT
\n
"
,
mmsys_error
(
rc
));
rc
=
timeGetDevCaps
(
0
,
0
);
ok
(
rc
==
TIMERR_NOCANDO
,
"timeGetDevCaps() returned %s, "
"should have returned TIMERR_NOCANDO
\n
"
,
mmsys_error
(
rc
));
ok
(
rc
==
TIMERR_NOCANDO
||
rc
==
MMSYSERR_INVALPARAM
,
"timeGetDevCaps() returned %s, should have returned TIMERR_NOCANDO "
"or MMSYSERR_INVALPARAM
\n
"
,
mmsys_error
(
rc
));
rc
=
timeGetDevCaps
(
&
tc
,
sizeof
(
tc
));
ok
(
rc
==
TIMERR_NOERROR
,
"timeGetDevCaps() returned %s, "
...
...
@@ -65,13 +68,13 @@ void test_timeGetDevCaps()
static
DWORD
count
=
0
;
static
DWORD
times
[
NUM_SAMPLES
];
void
CALLBACK
testTimeProc
(
UINT
uID
,
UINT
uMsg
,
DWORD
dwUser
,
DWORD
dw1
,
DWORD
dw2
)
static
void
CALLBACK
testTimeProc
(
UINT
uID
,
UINT
uMsg
,
DWORD
dwUser
,
DWORD
dw1
,
DWORD
dw2
)
{
if
(
count
<
NUM_SAMPLES
)
times
[
count
++
]
=
timeGetTime
();
}
void
test_timer
(
UINT
period
,
UINT
resolution
)
static
void
test_timer
(
UINT
period
,
UINT
resolution
)
{
MMRESULT
rc
;
UINT
i
,
id
,
delta
;
...
...
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