Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
4d5dcdca
Commit
4d5dcdca
authored
12 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dmsynth: Remove now useless NULL ptr check (Coverity).
parent
a6e4c094
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/dmsynth/synth.c
+2
-2
2 additions, 2 deletions
dlls/dmsynth/synth.c
with
2 additions
and
2 deletions
dlls/dmsynth/synth.c
+
2
−
2
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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment