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
48fdc8e0
Commit
48fdc8e0
authored
Mar 29, 2023
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Don't crash when Open() gets a DMUS_PORTPARAMS7.
Wrong sizeof check: pointer instead of referenced structure. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53704
parent
8fb04515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
synth.c
dlls/dmsynth/synth.c
+1
-1
No files found.
dlls/dmsynth/synth.c
View file @
48fdc8e0
...
@@ -163,7 +163,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Open(IDirectMusicSynth8 *iface, DMU
...
@@ -163,7 +163,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Open(IDirectMusicSynth8 *iface, DMU
modified
=
TRUE
;
modified
=
TRUE
;
params
->
fShare
=
FALSE
;
params
->
fShare
=
FALSE
;
if
(
params
->
dwSize
>=
sizeof
(
params
))
{
if
(
params
->
dwSize
>=
sizeof
(
*
params
))
{
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_FEATURES
&&
params
->
dwFeatures
)
{
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_FEATURES
&&
params
->
dwFeatures
)
{
if
(
params
->
dwFeatures
&
~
(
DMUS_PORT_FEATURE_AUDIOPATH
|
DMUS_PORT_FEATURE_STREAMING
))
{
if
(
params
->
dwFeatures
&
~
(
DMUS_PORT_FEATURE_AUDIOPATH
|
DMUS_PORT_FEATURE_STREAMING
))
{
modified
=
TRUE
;
modified
=
TRUE
;
...
...
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