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
20a50f30
Commit
20a50f30
authored
Dec 24, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Fix a test failure on Vista+ with no soundcard present.
parent
62bb1eb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
dependency.c
dlls/mmdevapi/tests/dependency.c
+14
-5
No files found.
dlls/mmdevapi/tests/dependency.c
View file @
20a50f30
...
...
@@ -55,15 +55,18 @@ START_TEST(dependency)
if
(
FAILED
(
hr
))
{
skip
(
"mmdevapi not available: 0x%08x
\n
"
,
hr
);
return
;
goto
cleanup
;
}
hr
=
IMMDeviceEnumerator_GetDefaultAudioEndpoint
(
mme
,
eRender
,
eMultimedia
,
&
dev
);
ok
(
hr
==
S_OK
,
"GetDefaultAudioEndpoint failed: 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
hr
==
E_NOTFOUND
,
"GetDefaultAudioEndpoint failed: 0x%08x
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
{
skip
(
"GetDefaultAudioEndpoint returns 0x%08x, skipping tests
\n
"
,
hr
);
return
;
if
(
hr
==
E_NOTFOUND
)
skip
(
"No sound card available
\n
"
);
else
skip
(
"GetDefaultAudioEndpoint returns 0x%08x
\n
"
,
hr
);
goto
cleanup
;
}
ok
(
!
GetModuleHandle
(
"dsound.dll"
),
"dsound.dll was already loaded!
\n
"
);
...
...
@@ -94,8 +97,14 @@ START_TEST(dependency)
ok
(
IsEqualCLSID
(
&
clsid
,
&
CLSID_DSoundRender
),
"Wrong class id %s"
,
dump_guid
(
&
clsid
));
}
}
cleanup
:
if
(
bf
)
IUnknown_Release
(
bf
);
if
(
dev
)
IUnknown_Release
(
dev
);
if
(
mme
)
IUnknown_Release
(
mme
);
IUnknown_Release
(
mme
);
CoUninitialize
(
);
}
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