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
52251ac6
Commit
52251ac6
authored
Apr 04, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmscript: Implement GetClassID() for IDirectMusicTrack.
parent
b16432f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
scripttrack.c
dlls/dmscript/scripttrack.c
+10
-2
dmscript.c
dlls/dmscript/tests/dmscript.c
+6
-2
No files found.
dlls/dmscript/scripttrack.c
View file @
52251ac6
...
...
@@ -264,7 +264,15 @@ static ULONG WINAPI IPersistStreamImpl_Release(IPersistStream *iface)
static
HRESULT
WINAPI
IPersistStreamImpl_GetClassID
(
IPersistStream
*
iface
,
CLSID
*
pClassID
)
{
return
E_NOTIMPL
;
DirectMusicScriptTrack
*
This
=
impl_from_IPersistStream
(
iface
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
pClassID
);
if
(
!
pClassID
)
return
E_POINTER
;
*
pClassID
=
This
->
desc
.
guidClass
;
return
S_OK
;
}
static
HRESULT
WINAPI
IPersistStreamImpl_IsDirty
(
IPersistStream
*
iface
)
...
...
@@ -319,7 +327,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicScriptTrack(REFIID riid, void **ret_iface
track
->
IDirectMusicTrack8_iface
.
lpVtbl
=
&
dmtrack8_vtbl
;
track
->
IPersistStream_iface
.
lpVtbl
=
&
persist_vtbl
;
track
->
desc
.
dwSize
=
sizeof
(
track
->
desc
);
track
->
desc
.
dwValidData
|
=
DMUS_OBJ_CLASS
;
track
->
desc
.
dwValidData
=
DMUS_OBJ_CLASS
;
track
->
desc
.
guidClass
=
CLSID_DirectMusicScriptTrack
;
track
->
ref
=
1
;
...
...
dlls/dmscript/tests/dmscript.c
View file @
52251ac6
...
...
@@ -217,9 +217,13 @@ static void test_scripttrack(void)
/* IPersistStream */
hr
=
IDirectMusicTrack_QueryInterface
(
dmt
,
&
IID_IPersistStream
,
(
void
**
)
&
ps
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IPersistStream failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_GetClassID
(
ps
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IPersistStream_GetClassID
(
ps
,
&
class
);
todo_wine
ok
(
hr
==
S_OK
,
"IPersistStream_GetClassID failed: %08x
\n
"
,
hr
);
todo_wine
ok
(
IsEqualGUID
(
&
class
,
&
CLSID_DirectMusicScriptTrack
),
ok
(
hr
==
S_OK
,
"IPersistStream_GetClassID failed: %08x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
class
,
&
CLSID_DirectMusicScriptTrack
),
"Expected class CLSID_DirectMusicScriptTrack got %s
\n
"
,
wine_dbgstr_guid
(
&
class
));
/* Unimplemented IPersistStream methods */
...
...
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