Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bf9d6f2d
Commit
bf9d6f2d
authored
May 01, 2010
by
Gerald Pfeifer
Committed by
Alexandre Julliard
May 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm32/tests: Simplify check_count and msacm_tests.
parent
3d310f03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
msacm.c
dlls/msacm32/tests/msacm.c
+12
-15
No files found.
dlls/msacm32/tests/msacm.c
View file @
bf9d6f2d
...
@@ -423,7 +423,7 @@ static const char * get_metric(UINT uMetric)
...
@@ -423,7 +423,7 @@ static const char * get_metric(UINT uMetric)
return
"UNKNOWN"
;
return
"UNKNOWN"
;
}
}
static
DWORD
check_count
(
UINT
uMetric
)
static
void
check_count
(
UINT
uMetric
)
{
{
DWORD
dwMetric
;
DWORD
dwMetric
;
MMRESULT
rc
;
MMRESULT
rc
;
...
@@ -452,14 +452,11 @@ static DWORD check_count(UINT uMetric)
...
@@ -452,14 +452,11 @@ static DWORD check_count(UINT uMetric)
if
(
rc
==
MMSYSERR_NOERROR
&&
winetest_interactive
)
if
(
rc
==
MMSYSERR_NOERROR
&&
winetest_interactive
)
trace
(
"%s: %u
\n
"
,
get_metric
(
uMetric
),
dwMetric
);
trace
(
"%s: %u
\n
"
,
get_metric
(
uMetric
),
dwMetric
);
return
dwMetric
;
}
}
static
void
msacm_tests
(
void
)
static
void
msacm_tests
(
void
)
{
{
MMRESULT
rc
;
MMRESULT
rc
;
DWORD
dwCount
;
DWORD
dwACMVersion
=
acmGetVersion
();
DWORD
dwACMVersion
=
acmGetVersion
();
if
(
winetest_interactive
)
{
if
(
winetest_interactive
)
{
...
@@ -470,17 +467,17 @@ static void msacm_tests(void)
...
@@ -470,17 +467,17 @@ static void msacm_tests(void)
LOWORD
(
dwACMVersion
)
==
0
?
" (Retail)"
:
""
);
LOWORD
(
dwACMVersion
)
==
0
?
" (Retail)"
:
""
);
}
}
dwCount
=
check_count
(
ACM_METRIC_COUNT_CODECS
);
check_count
(
ACM_METRIC_COUNT_CODECS
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_CONVERTERS
);
check_count
(
ACM_METRIC_COUNT_CONVERTERS
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_DISABLED
);
check_count
(
ACM_METRIC_COUNT_DISABLED
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_DRIVERS
);
check_count
(
ACM_METRIC_COUNT_DRIVERS
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_FILTERS
);
check_count
(
ACM_METRIC_COUNT_FILTERS
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_HARDWARE
);
check_count
(
ACM_METRIC_COUNT_HARDWARE
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_LOCAL_CODECS
);
check_count
(
ACM_METRIC_COUNT_LOCAL_CODECS
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_LOCAL_CONVERTERS
);
check_count
(
ACM_METRIC_COUNT_LOCAL_CONVERTERS
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_LOCAL_DISABLED
);
check_count
(
ACM_METRIC_COUNT_LOCAL_DISABLED
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_LOCAL_DRIVERS
);
check_count
(
ACM_METRIC_COUNT_LOCAL_DRIVERS
);
dwCount
=
check_count
(
ACM_METRIC_COUNT_LOCAL_FILTERS
);
check_count
(
ACM_METRIC_COUNT_LOCAL_FILTERS
);
if
(
winetest_interactive
)
if
(
winetest_interactive
)
trace
(
"enabled drivers:
\n
"
);
trace
(
"enabled drivers:
\n
"
);
...
...
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