Michael Stefaniuc : dmband: IsParamSupported method 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: 6e98db3d4575e48cd688cc2e9313a77acad63018
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6e98db3d4575e48cd688cc2e9313a77acad63018

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

dmband: IsParamSupported method doesn't crashes on NULL.

---

 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)




More information about the wine-cvs mailing list