Christian Costa : dmusic: Improve IDirectMusicPortDownloadImpl_GetBuffer stub.
Module: wine Branch: master Commit: ba081eb22101a7933eadf8d67eeffef04fd1852f URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba081eb22101a7933eadf8d67e... Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Mon Dec 22 14:08:23 2008 +0100 dmusic: Improve IDirectMusicPortDownloadImpl_GetBuffer stub. --- dlls/dmusic/port.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/dmusic/port.c b/dlls/dmusic/port.c index 618c2e3..5c4e848 100644 --- a/dlls/dmusic/port.c +++ b/dlls/dmusic/port.c @@ -276,8 +276,13 @@ static ULONG WINAPI IDirectMusicPortDownloadImpl_Release (LPDIRECTMUSICPORTDOWNL /* IDirectMusicPortDownload Interface follow: */ static HRESULT WINAPI IDirectMusicPortDownloadImpl_GetBuffer (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD dwDLId, IDirectMusicDownload** ppIDMDownload) { ICOM_THIS_MULTI(IDirectMusicPortImpl, lpDownloadVtbl, iface); + FIXME("(%p/%p)->(%d, %p): stub\n", This, iface, dwDLId, ppIDMDownload); - return S_OK; + + if (!ppIDMDownload) + return E_POINTER; + + return DMUSIC_CreateDirectMusicDownloadImpl(&IID_IDirectMusicDownload, (LPVOID*)ppIDMDownload, NULL); } static HRESULT WINAPI IDirectMusicPortDownloadImpl_AllocateBuffer (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD dwSize, IDirectMusicDownload** ppIDMDownload) {
participants (1)
-
Alexandre Julliard