Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ed48ffdf
Commit
ed48ffdf
authored
Jun 26, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmstyle: IsParamSupported method doesn't crashes on NULL.
parent
b79f81ad
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
0 deletions
+28
-0
auditiontrack.c
dlls/dmstyle/auditiontrack.c
+4
-0
chordtrack.c
dlls/dmstyle/chordtrack.c
+4
-0
commandtrack.c
dlls/dmstyle/commandtrack.c
+4
-0
motiftrack.c
dlls/dmstyle/motiftrack.c
+4
-0
mutetrack.c
dlls/dmstyle/mutetrack.c
+4
-0
styletrack.c
dlls/dmstyle/styletrack.c
+4
-0
dmstyle.c
dlls/dmstyle/tests/dmstyle.c
+4
-0
No files found.
dlls/dmstyle/auditiontrack.c
View file @
ed48ffdf
...
...
@@ -144,6 +144,10 @@ static HRESULT WINAPI IDirectMusicAuditionTrack_IDirectMusicTrack_IsParamSupport
ICOM_THIS_MULTI
(
IDirectMusicAuditionTrack
,
TrackVtbl
,
iface
);
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidType
));
if
(
!
rguidType
)
return
E_POINTER
;
/* didn't find any params */
TRACE
(
"param unsupported
\n
"
);
return
DMUS_E_TYPE_UNSUPPORTED
;
...
...
dlls/dmstyle/chordtrack.c
View file @
ed48ffdf
...
...
@@ -145,6 +145,10 @@ static HRESULT WINAPI IDirectMusicChordTrack_IDirectMusicTrack_IsParamSupported
ICOM_THIS_MULTI
(
IDirectMusicChordTrack
,
TrackVtbl
,
iface
);
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidType
));
if
(
!
rguidType
)
return
E_POINTER
;
if
(
IsEqualGUID
(
rguidType
,
&
GUID_BandParam
)
||
IsEqualGUID
(
rguidType
,
&
GUID_ChordParam
)
||
IsEqualGUID
(
rguidType
,
&
GUID_RhythmParam
))
{
...
...
dlls/dmstyle/commandtrack.c
View file @
ed48ffdf
...
...
@@ -145,6 +145,10 @@ static HRESULT WINAPI IDirectMusicCommandTrack_IDirectMusicTrack_IsParamSupporte
ICOM_THIS_MULTI
(
IDirectMusicCommandTrack
,
TrackVtbl
,
iface
);
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidType
));
if
(
!
rguidType
)
return
E_POINTER
;
if
(
IsEqualGUID
(
rguidType
,
&
GUID_CommandParam
)
||
IsEqualGUID
(
rguidType
,
&
GUID_CommandParam2
)
||
IsEqualGUID
(
rguidType
,
&
GUID_CommandParamNext
))
{
...
...
dlls/dmstyle/motiftrack.c
View file @
ed48ffdf
...
...
@@ -144,6 +144,10 @@ static HRESULT WINAPI IDirectMusicMotifTrack_IDirectMusicTrack_IsParamSupported
ICOM_THIS_MULTI
(
IDirectMusicMotifTrack
,
TrackVtbl
,
iface
);
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidType
));
if
(
!
rguidType
)
return
E_POINTER
;
if
(
IsEqualGUID
(
rguidType
,
&
GUID_DisableTimeSig
)
||
IsEqualGUID
(
rguidType
,
&
GUID_EnableTimeSig
)
||
IsEqualGUID
(
rguidType
,
&
GUID_SeedVariations
)
...
...
dlls/dmstyle/mutetrack.c
View file @
ed48ffdf
...
...
@@ -144,6 +144,10 @@ static HRESULT WINAPI IDirectMusicMuteTrack_IDirectMusicTrack_IsParamSupported (
ICOM_THIS_MULTI
(
IDirectMusicMuteTrack
,
TrackVtbl
,
iface
);
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidType
));
if
(
!
rguidType
)
return
E_POINTER
;
if
(
IsEqualGUID
(
rguidType
,
&
GUID_MuteParam
))
{
TRACE
(
"param supported
\n
"
);
return
S_OK
;
...
...
dlls/dmstyle/styletrack.c
View file @
ed48ffdf
...
...
@@ -145,6 +145,10 @@ static HRESULT WINAPI IDirectMusicStyleTrack_IDirectMusicTrack_IsParamSupported
ICOM_THIS_MULTI
(
IDirectMusicStyleTrack
,
TrackVtbl
,
iface
);
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidType
));
if
(
!
rguidType
)
return
E_POINTER
;
if
(
IsEqualGUID
(
rguidType
,
&
GUID_DisableTimeSig
)
||
IsEqualGUID
(
rguidType
,
&
GUID_EnableTimeSig
)
||
IsEqualGUID
(
rguidType
,
&
GUID_IDirectMusicStyle
)
...
...
dlls/dmstyle/tests/dmstyle.c
View file @
ed48ffdf
...
...
@@ -273,6 +273,10 @@ static void test_track(void)
}
ok
(
hr
==
S_OK
,
"%s create failed: %08x, expected S_OK
\n
"
,
class
[
i
].
name
,
hr
);
/* IDirectMusicTrack8 */
hr
=
IDirectMusicTrack8_IsParamSupported
(
dmt8
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectMusicTrack8_IsParamSupported failed: %08x
\n
"
,
hr
);
/* IPersistStream */
hr
=
IDirectMusicTrack8_QueryInterface
(
dmt8
,
&
IID_IPersistStream
,
(
void
**
)
&
ps
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IPersistStream failed: %08x
\n
"
,
hr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment