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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 25 08:19:40 CDT 2015


Module: wine
Branch: master
Commit: d9aa14c5e07a01177a2f5493ae7746f157231992
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d9aa14c5e07a01177a2f5493ae7746f157231992

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Jun 25 00:36:13 2015 +0200

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

---

 dlls/dmcompos/chordmaptrack.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/dmcompos/chordmaptrack.c b/dlls/dmcompos/chordmaptrack.c
index cac652c..9077c88 100644
--- a/dlls/dmcompos/chordmaptrack.c
+++ b/dlls/dmcompos/chordmaptrack.c
@@ -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;




More information about the wine-cvs mailing list