[dmime] AddPort's pPort can be NULL
Peter Berg Larsen
pebl at math.ku.dk
Mon Oct 17 18:19:55 CDT 2005
Changelog:
pPort can be NULL, meaning default port. If so, dont try and
AddRef the NULL.
Index: dlls/dmime/performance.c
===================================================================
RCS file: /home/wine/wine/dlls/dmime/performance.c,v
retrieving revision 1.26
diff -p -u -r1.26 performance.c
--- dlls/dmime/performance.c 21 Jun 2005 09:44:28 -0000 1.26
+++ dlls/dmime/performance.c 17 Oct 2005 22:48:42 -0000
@@ -511,7 +511,10 @@ static HRESULT WINAPI IDirectMusicPerfor
static HRESULT WINAPI IDirectMusicPerformance8Impl_AddPort (LPDIRECTMUSICPERFORMANCE8 iface, IDirectMusicPort* pPort) {
IDirectMusicPerformance8Impl *This = (IDirectMusicPerformance8Impl *)iface;
FIXME("(%p, %p): stub\n", This, pPort);
- IDirectMusicPort_AddRef (pPort);
+ if (pPort == NULL) {
+ FIXME("Default port selected, but not implemented\n");
+ } else
+ IDirectMusicPort_AddRef (pPort);
return S_OK;
}
More information about the wine-patches
mailing list