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
4e81a977
Commit
4e81a977
authored
Jun 12, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Use generic "unimplemented" methods for IPersistStream.
parent
02ed47fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
24 deletions
+39
-24
collection.c
dlls/dmusic/collection.c
+4
-24
dmobject.c
dlls/dmusic/dmobject.c
+26
-0
dmobject.h
dlls/dmusic/dmobject.h
+9
-0
No files found.
dlls/dmusic/collection.c
View file @
4e81a977
...
@@ -390,16 +390,6 @@ static const IDirectMusicObjectVtbl dmobject_vtbl = {
...
@@ -390,16 +390,6 @@ static const IDirectMusicObjectVtbl dmobject_vtbl = {
};
};
/* IDirectMusicCollectionImpl IPersistStream part: */
/* IDirectMusicCollectionImpl IPersistStream part: */
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_GetClassID
(
LPPERSISTSTREAM
iface
,
CLSID
*
pClassID
)
{
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_IsDirty
(
LPPERSISTSTREAM
iface
)
{
return
S_FALSE
;
}
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Load
(
LPPERSISTSTREAM
iface
,
IStream
*
stream
)
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Load
(
LPPERSISTSTREAM
iface
,
IStream
*
stream
)
{
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IPersistStream
(
iface
);
IDirectMusicCollectionImpl
*
This
=
impl_from_IPersistStream
(
iface
);
...
@@ -703,25 +693,15 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load(LPPERSISTST
...
@@ -703,25 +693,15 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load(LPPERSISTST
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
)
{
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_IPersistStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
)
{
return
E_NOTIMPL
;
}
static
const
IPersistStreamVtbl
persiststream_vtbl
=
{
static
const
IPersistStreamVtbl
persiststream_vtbl
=
{
dmobj_IPersistStream_QueryInterface
,
dmobj_IPersistStream_QueryInterface
,
dmobj_IPersistStream_AddRef
,
dmobj_IPersistStream_AddRef
,
dmobj_IPersistStream_Release
,
dmobj_IPersistStream_Release
,
IDirectMusicCollectionI
mpl_IPersistStream_GetClassID
,
uni
mpl_IPersistStream_GetClassID
,
IDirectMusicCollectionI
mpl_IPersistStream_IsDirty
,
uni
mpl_IPersistStream_IsDirty
,
IDirectMusicCollectionImpl_IPersistStream_Load
,
IDirectMusicCollectionImpl_IPersistStream_Load
,
IDirectMusicCollectionI
mpl_IPersistStream_Save
,
uni
mpl_IPersistStream_Save
,
IDirectMusicCollectionI
mpl_IPersistStream_GetSizeMax
uni
mpl_IPersistStream_GetSizeMax
};
};
...
...
dlls/dmusic/dmobject.c
View file @
4e81a977
...
@@ -134,6 +134,32 @@ ULONG WINAPI dmobj_IPersistStream_Release(IPersistStream *iface)
...
@@ -134,6 +134,32 @@ ULONG WINAPI dmobj_IPersistStream_Release(IPersistStream *iface)
return
IUnknown_Release
(
This
->
outer_unk
);
return
IUnknown_Release
(
This
->
outer_unk
);
}
}
/* IPersistStream methods not implemented in native */
HRESULT
WINAPI
unimpl_IPersistStream_GetClassID
(
IPersistStream
*
iface
,
CLSID
*
class
)
{
TRACE
(
"(%p, %p): method not implemented
\n
"
,
iface
,
class
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
unimpl_IPersistStream_IsDirty
(
IPersistStream
*
iface
)
{
TRACE
(
"(%p): method not implemented, always returning S_FALSE
\n
"
,
iface
);
return
S_FALSE
;
}
HRESULT
WINAPI
unimpl_IPersistStream_Save
(
IPersistStream
*
iface
,
IStream
*
stream
,
BOOL
clear_dirty
)
{
TRACE
(
"(%p, %p, %d): method not implemented
\n
"
,
iface
,
stream
,
clear_dirty
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
unimpl_IPersistStream_GetSizeMax
(
IPersistStream
*
iface
,
ULARGE_INTEGER
*
size
)
{
TRACE
(
"(%p, %p): method not implemented
\n
"
,
iface
,
size
);
return
E_NOTIMPL
;
}
void
dmobject_init
(
struct
dmobject
*
dmobj
,
const
GUID
*
class
,
IUnknown
*
outer_unk
)
void
dmobject_init
(
struct
dmobject
*
dmobj
,
const
GUID
*
class
,
IUnknown
*
outer_unk
)
{
{
...
...
dlls/dmusic/dmobject.h
View file @
4e81a977
...
@@ -42,3 +42,12 @@ HRESULT WINAPI dmobj_IPersistStream_QueryInterface(IPersistStream *iface, REFIID
...
@@ -42,3 +42,12 @@ HRESULT WINAPI dmobj_IPersistStream_QueryInterface(IPersistStream *iface, REFIID
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
void
**
ret_iface
)
DECLSPEC_HIDDEN
;
ULONG
WINAPI
dmobj_IPersistStream_AddRef
(
IPersistStream
*
iface
)
DECLSPEC_HIDDEN
;
ULONG
WINAPI
dmobj_IPersistStream_AddRef
(
IPersistStream
*
iface
)
DECLSPEC_HIDDEN
;
ULONG
WINAPI
dmobj_IPersistStream_Release
(
IPersistStream
*
iface
)
DECLSPEC_HIDDEN
;
ULONG
WINAPI
dmobj_IPersistStream_Release
(
IPersistStream
*
iface
)
DECLSPEC_HIDDEN
;
/* IPersistStream methods not implemented in native */
HRESULT
WINAPI
unimpl_IPersistStream_GetClassID
(
IPersistStream
*
iface
,
CLSID
*
class
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
unimpl_IPersistStream_IsDirty
(
IPersistStream
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
unimpl_IPersistStream_Save
(
IPersistStream
*
iface
,
IStream
*
stream
,
BOOL
clear_dirty
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
unimpl_IPersistStream_GetSizeMax
(
IPersistStream
*
iface
,
ULARGE_INTEGER
*
size
)
DECLSPEC_HIDDEN
;
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