dmband: IsParamSupported method doesn't crashes on NULL.

This commit is contained in:
Michael Stefaniuc 2015-06-25 00:12:53 +02:00 committed by Alexandre Julliard
parent 3a9698f4af
commit 6e98db3d45
1 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,10 @@ static HRESULT WINAPI IDirectMusicBandTrack_IDirectMusicTrack_IsParamSupported (
ICOM_THIS_MULTI(IDirectMusicBandTrack, TrackVtbl, iface);
TRACE("(%p, %s)\n", This, debugstr_dmguid(rguidType));
if (!rguidType)
return E_POINTER;
if (IsEqualGUID (rguidType, &GUID_BandParam)
|| IsEqualGUID (rguidType, &GUID_Clear_All_Bands)
|| IsEqualGUID (rguidType, &GUID_ConnectToDLSCollection)