[PATCH 1/3] dmband: IsParamSupported method doesn't crashes on NULL.

Michael Stefaniuc mstefani at redhat.de
Wed Jun 24 17:12:53 CDT 2015


---
 dlls/dmband/bandtrack.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/dmband/bandtrack.c b/dlls/dmband/bandtrack.c
index 14e368d..08dde14 100644
--- a/dlls/dmband/bandtrack.c
+++ b/dlls/dmband/bandtrack.c
@@ -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)
-- 
2.1.0



More information about the wine-patches mailing list