Christian Costa : dmusic: Improve IDirectMusicPortDownloadImpl_GetBuffer stub.
Alexandre Julliard
julliard at winehq.org
Mon Dec 22 10:19:53 CST 2008
Module: wine
Branch: master
Commit: ba081eb22101a7933eadf8d67eeffef04fd1852f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba081eb22101a7933eadf8d67eeffef04fd1852f
Author: Christian Costa <titan.costa at 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) {
More information about the wine-cvs
mailing list