dmime: Check input params in IDirectMusicSegmentState8Impl_QueryInterface.

This commit is contained in:
Christian Costa 2008-12-14 19:03:56 +01:00 committed by Alexandre Julliard
parent 7ed6f0a643
commit 53562c7a84
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ static HRESULT WINAPI IDirectMusicSegmentState8Impl_QueryInterface (LPDIRECTMUSI
IDirectMusicSegmentState8Impl *This = (IDirectMusicSegmentState8Impl *)iface;
TRACE("(%p, %s, %p)\n", This, debugstr_dmguid(riid), ppobj);
if (!riid || !ppobj)
return E_POINTER;
if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IDirectMusicSegmentState) ||
IsEqualIID(riid, &IID_IDirectMusicSegmentState8)) {