dmcompos: IsParamSupported of DMChordMapTrack doesn't crashes on NULL.

This commit is contained in:
Michael Stefaniuc 2015-06-25 00:36:13 +02:00 committed by Alexandre Julliard
parent 8fae7fd4cc
commit d9aa14c5e0
1 changed files with 4 additions and 0 deletions

View File

@ -139,6 +139,10 @@ static HRESULT WINAPI IDirectMusicChordMapTrack_IDirectMusicTrack_SetParam (LPDI
static HRESULT WINAPI IDirectMusicChordMapTrack_IDirectMusicTrack_IsParamSupported (LPDIRECTMUSICTRACK8 iface, REFGUID rguidType) {
ICOM_THIS_MULTI(IDirectMusicChordMapTrack, TrackVtbl, iface);
TRACE("(%p, %s)\n", This, debugstr_dmguid(rguidType));
if (!rguidType)
return E_POINTER;
if (IsEqualGUID (rguidType, &GUID_IDirectMusicChordMap)) {
TRACE("param supported\n");
return S_OK;