Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4d5dcdca
Commit
4d5dcdca
authored
Jan 07, 2013
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Remove now useless NULL ptr check (Coverity).
parent
a6e4c094
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
synth.c
dlls/dmsynth/synth.c
+2
-2
No files found.
dlls/dmsynth/synth.c
View file @
4d5dcdca
...
...
@@ -126,7 +126,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_SetNumChannelGroups(LPDIRECTMUSICSY
static
HRESULT
WINAPI
IDirectMusicSynth8Impl_Download
(
LPDIRECTMUSICSYNTH8
iface
,
LPHANDLE
hDownload
,
LPVOID
data
,
LPBOOL
free
)
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
LPBYTE
buffer
=
(
LPBYTE
)
data
;
LPBYTE
buffer
=
data
;
DMUS_DOWNLOADINFO
*
info
=
(
DMUS_DOWNLOADINFO
*
)
buffer
;
ULONG
*
offsets
=
((
DMUS_OFFSETTABLE
*
)(
buffer
+
sizeof
(
DMUS_DOWNLOADINFO
)))
->
ulOffsetTable
;
LPBYTE
object
=
buffer
+
sizeof
(
DMUS_DOWNLOADINFO
)
+
info
->
dwNumOffsetTableEntries
*
sizeof
(
ULONG
);
...
...
@@ -135,7 +135,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Download(LPDIRECTMUSICSYNTH8 iface,
/* FIXME: Currently we only dump data which is very useful to known how native dmusic behave and debug builtin dmusic */
if
(
!
hDownload
||
!
data
||
!
free
)
if
(
!
hDownload
||
!
free
)
return
E_POINTER
;
if
(
TRACE_ON
(
dmsynth
))
...
...
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