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
5964f663
Commit
5964f663
authored
Jan 17, 2006
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Jan 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm: Add parameter tests for ACM_METRIC_DRIVER_PRIORITY and
ACM_METRIC_DRIVER_SUPPORT. Fix copy&paste mislabeling on acmDriverID test failure.
parent
1da4b59e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
2 deletions
+53
-2
msacm.c
dlls/msacm/tests/msacm.c
+53
-2
No files found.
dlls/msacm/tests/msacm.c
View file @
5964f663
...
...
@@ -61,6 +61,9 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
MMRESULT
rc
;
ACMDRIVERDETAILS
dd
;
HACMDRIVER
had
;
DWORD
dwDriverPriority
;
DWORD
dwDriverSupport
;
if
(
winetest_interactive
)
{
trace
(
"id: %p
\n
"
,
hadid
);
...
...
@@ -139,6 +142,54 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
trace
(
" Supports %lu filter formats
\n
"
,
dd
.
cFilterTags
);
}
/* try bad pointer */
rc
=
acmMetrics
((
HACMOBJ
)
hadid
,
ACM_METRIC_DRIVER_PRIORITY
,
0
);
ok
(
rc
==
MMSYSERR_INVALPARAM
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALPARAM
);
/* try bad handle */
rc
=
acmMetrics
((
HACMOBJ
)
1
,
ACM_METRIC_DRIVER_PRIORITY
,
&
dwDriverPriority
);
ok
(
rc
==
MMSYSERR_INVALHANDLE
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALHANDLE
);
/* try bad pointer and handle */
rc
=
acmMetrics
((
HACMOBJ
)
1
,
ACM_METRIC_DRIVER_PRIORITY
,
0
);
ok
(
rc
==
MMSYSERR_INVALHANDLE
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALHANDLE
);
/* try valid parameters */
rc
=
acmMetrics
((
HACMOBJ
)
hadid
,
ACM_METRIC_DRIVER_PRIORITY
,
&
dwDriverSupport
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_NOERROR
);
/* try bad pointer */
rc
=
acmMetrics
((
HACMOBJ
)
hadid
,
ACM_METRIC_DRIVER_SUPPORT
,
0
);
ok
(
rc
==
MMSYSERR_INVALPARAM
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALPARAM
);
/* try bad handle */
rc
=
acmMetrics
((
HACMOBJ
)
1
,
ACM_METRIC_DRIVER_SUPPORT
,
&
dwDriverSupport
);
ok
(
rc
==
MMSYSERR_INVALHANDLE
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALHANDLE
);
/* try bad pointer and handle */
rc
=
acmMetrics
((
HACMOBJ
)
1
,
ACM_METRIC_DRIVER_SUPPORT
,
0
);
ok
(
rc
==
MMSYSERR_INVALHANDLE
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALHANDLE
);
/* try valid parameters */
rc
=
acmMetrics
((
HACMOBJ
)
hadid
,
ACM_METRIC_DRIVER_SUPPORT
,
&
dwDriverSupport
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"acmMetrics(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_NOERROR
);
/* try invalid pointer */
rc
=
acmDriverOpen
(
0
,
hadid
,
0
);
ok
(
rc
==
MMSYSERR_INVALPARAM
,
...
...
@@ -176,13 +227,13 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
/* try bad handle */
rc
=
acmDriverID
((
HACMOBJ
)
1
,
&
hid
,
0
);
ok
(
rc
==
MMSYSERR_INVALHANDLE
,
"acm
Metrics
(): rc = %08x, should be %08x
\n
"
,
"acm
DriverID
(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALHANDLE
);
/* try bad handle and pointer */
rc
=
acmDriverID
((
HACMOBJ
)
1
,
0
,
0
);
ok
(
rc
==
MMSYSERR_INVALHANDLE
,
"acm
Metrics
(): rc = %08x, should be %08x
\n
"
,
"acm
DriverID
(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_INVALHANDLE
);
/* try bad flag */
...
...
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