Commit 40769b4f authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmstyle: Mark IPersistStream_Save() as stub.

parent 2026a215
......@@ -242,6 +242,11 @@ static const IDirectMusicTrack8Vtbl dmtrack8_vtbl = {
IDirectMusicTrack8Impl_Join
};
static inline IDirectMusicAuditionTrack * impl_from_IPersistStream(IPersistStream *iface)
{
return CONTAINING_RECORD(iface, IDirectMusicAuditionTrack, dmobj.IPersistStream_iface);
}
static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *stream)
{
FIXME(": Loading not implemented yet\n");
......@@ -251,7 +256,14 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *st
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream,
BOOL cleardirty)
{
return E_NOTIMPL;
IDirectMusicAuditionTrack *This = impl_from_IPersistStream(iface);
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
if (!stream)
return E_POINTER;
return E_NOTIMPL;
}
static const IPersistStreamVtbl persiststream_vtbl = {
......
......@@ -376,9 +376,14 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream,
BOOL cleardirty)
{
IDirectMusicChordTrack *This = impl_from_IPersistStream(iface);
FIXME("(%p): Saving not implemented yet\n", This);
return E_NOTIMPL;
IDirectMusicChordTrack *This = impl_from_IPersistStream(iface);
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
if (!stream)
return E_POINTER;
return E_NOTIMPL;
}
static const IPersistStreamVtbl persiststream_vtbl = {
......
......@@ -319,7 +319,14 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream,
BOOL cleardirty)
{
return E_NOTIMPL;
IDirectMusicCommandTrack *This = impl_from_IPersistStream(iface);
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
if (!stream)
return E_POINTER;
return E_NOTIMPL;
}
static const IPersistStreamVtbl persiststream_vtbl = {
......
......@@ -247,6 +247,11 @@ static const IDirectMusicTrack8Vtbl dmtrack8_vtbl = {
IDirectMusicTrack8Impl_Join
};
static inline IDirectMusicMuteTrack * impl_from_IPersistStream(IPersistStream *iface)
{
return CONTAINING_RECORD(iface, IDirectMusicMuteTrack, dmobj.IPersistStream_iface);
}
static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *stream)
{
FIXME(": Loading not implemented yet\n");
......@@ -256,7 +261,14 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *st
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream,
BOOL cleardirty)
{
return E_NOTIMPL;
IDirectMusicMuteTrack *This = impl_from_IPersistStream(iface);
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
if (!stream)
return E_POINTER;
return E_NOTIMPL;
}
static const IPersistStreamVtbl persiststream_vtbl = {
......
......@@ -339,7 +339,7 @@ static void test_track(void)
hr = IPersistStream_Save(ps, NULL, TRUE);
if (class[i].has_save)
todo_wine ok(hr == E_POINTER, "IPersistStream_Save failed: %08x\n", hr);
ok(hr == E_POINTER, "IPersistStream_Save failed: %08x\n", hr);
else
ok(hr == E_NOTIMPL, "IPersistStream_Save failed: %08x\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment