dmstyle: Mark IPersistStream_Save() as stub.
This commit is contained in:
parent
2026a21525
commit
40769b4fad
|
@ -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,6 +256,13 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *st
|
|||
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream,
|
||||
BOOL cleardirty)
|
||||
{
|
||||
IDirectMusicAuditionTrack *This = impl_from_IPersistStream(iface);
|
||||
|
||||
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
|
||||
|
||||
if (!stream)
|
||||
return E_POINTER;
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -377,7 +377,12 @@ static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *st
|
|||
BOOL cleardirty)
|
||||
{
|
||||
IDirectMusicChordTrack *This = impl_from_IPersistStream(iface);
|
||||
FIXME("(%p): Saving not implemented yet\n", This);
|
||||
|
||||
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
|
||||
|
||||
if (!stream)
|
||||
return E_POINTER;
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -319,6 +319,13 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
|
|||
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream,
|
||||
BOOL cleardirty)
|
||||
{
|
||||
IDirectMusicCommandTrack *This = impl_from_IPersistStream(iface);
|
||||
|
||||
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
|
||||
|
||||
if (!stream)
|
||||
return E_POINTER;
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,6 +261,13 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *st
|
|||
static HRESULT WINAPI IPersistStreamImpl_Save(IPersistStream *iface, IStream *stream,
|
||||
BOOL cleardirty)
|
||||
{
|
||||
IDirectMusicMuteTrack *This = impl_from_IPersistStream(iface);
|
||||
|
||||
FIXME("(%p, %p, %d): stub\n", This, stream, cleardirty);
|
||||
|
||||
if (!stream)
|
||||
return E_POINTER;
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue