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
70122354
Commit
70122354
authored
Jan 30, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband/tests: Move the dll availability check to a separate function.
parent
05d18725
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
dmband.c
dlls/dmband/tests/dmband.c
+21
-9
No files found.
dlls/dmband/tests/dmband.c
View file @
70122354
...
...
@@ -31,22 +31,28 @@
DEFINE_GUID
(
IID_IDirectMusicBandTrackPrivate
,
0x53466056
,
0x6dc4
,
0x11d1
,
0xbf
,
0x7b
,
0x00
,
0xc0
,
0x4f
,
0xbf
,
0x8f
,
0xef
);
static
BOOL
missing_dmband
(
void
)
{
IDirectMusicBand
*
dmb
;
HRESULT
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicBand
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicBand
,
(
void
**
)
&
dmb
);
if
(
hr
==
S_OK
&&
dmb
)
{
IDirectMusicBand_Release
(
dmb
);
return
FALSE
;
}
return
TRUE
;
}
static
void
test_dmband
(
void
)
{
IDirectMusicBand
*
band
;
IUnknown
*
unknown
=
NULL
;
IDirectMusicTrack
*
track
=
NULL
;
IPersistStream
*
stream
=
NULL
;
IPersistStream
*
private
=
NULL
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicBand
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicBand
,
(
LPVOID
*
)
&
band
);
if
(
hr
!=
S_OK
)
{
skip
(
"Cannot create DirectMusicBand object (%x)
\n
"
,
hr
);
return
;
}
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicBandTrack
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
LPVOID
*
)
&
unknown
);
ok
(
hr
==
S_OK
,
"CoCreateInstance returned: %x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IDirectMusicTrack
,
(
LPVOID
*
)
&
track
);
...
...
@@ -68,13 +74,19 @@ static void test_dmband(void)
IDirectMusicTrack_Release
(
track
);
if
(
unknown
)
IUnknown_Release
(
unknown
);
IDirectMusicBand_Release
(
band
);
}
START_TEST
(
dmband
)
{
CoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
if
(
missing_dmband
())
{
skip
(
"dmband not available
\n
"
);
CoUninitialize
();
return
;
}
test_dmband
();
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