Christian Costa : dmime: Improve IDirectMusicPerformance8Impl_PlaySegment( Ex) stubs.
Alexandre Julliard
julliard at winehq.org
Mon Dec 15 08:27:15 CST 2008
Module: wine
Branch: master
Commit: 7ed6f0a643138ff1253e46dd17725a8fc002470a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ed6f0a643138ff1253e46dd17725a8fc002470a
Author: Christian Costa <titan.costa at wanadoo.fr>
Date: Sun Dec 14 19:00:15 2008 +0100
dmime: Improve IDirectMusicPerformance8Impl_PlaySegment(Ex) stubs.
---
dlls/dmime/performance.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c
index 0523cd7..b98652d 100644
--- a/dlls/dmime/performance.c
+++ b/dlls/dmime/performance.c
@@ -253,6 +253,8 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_PlaySegment (LPDIRECTMUSICPER
IDirectMusicPerformance8Impl *This = (IDirectMusicPerformance8Impl *)iface;
FIXME("(%p, %p, %d, 0x%s, %p): stub\n", This, pSegment, dwFlags,
wine_dbgstr_longlong(i64StartTime), ppSegmentState);
+ if (ppSegmentState)
+ return DMUSIC_CreateDirectMusicSegmentStateImpl(&IID_IDirectMusicSegmentState, (LPVOID*)ppSegmentState, NULL);
return S_OK;
}
@@ -787,7 +789,9 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_PlaySegmentEx (LPDIRECTMUSICP
IDirectMusicPerformance8Impl *This = (IDirectMusicPerformance8Impl *)iface;
FIXME("(%p, %p, %p, %p, %d, 0x%s, %p, %p, %p): stub\n", This, pSource, pwzSegmentName,
pTransition, dwFlags, wine_dbgstr_longlong(i64StartTime), ppSegmentState, pFrom, pAudioPath);
- return DMUS_E_SEGMENT_INIT_FAILED;
+ if (ppSegmentState)
+ return DMUSIC_CreateDirectMusicSegmentStateImpl(&IID_IDirectMusicSegmentState, (LPVOID*)ppSegmentState, NULL);
+ return S_OK;
}
static HRESULT WINAPI IDirectMusicPerformance8Impl_StopEx (LPDIRECTMUSICPERFORMANCE8 iface, IUnknown* pObjectToStop, __int64 i64StopTime, DWORD dwFlags) {
More information about the wine-cvs
mailing list