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
9e8cf808
Commit
9e8cf808
authored
Aug 17, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Aug 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Fix a crash in put_volume when basic_audio is NULL.
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08fc5320
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
player.c
dlls/wmp/player.c
+9
-9
No files found.
dlls/wmp/player.c
View file @
9e8cf808
...
...
@@ -985,18 +985,18 @@ static HRESULT WINAPI WMPSettings_get_volume(IWMPSettings *iface, LONG *p)
static
HRESULT
WINAPI
WMPSettings_put_volume
(
IWMPSettings
*
iface
,
LONG
v
)
{
HRESULT
hres
;
WindowsMediaPlayer
*
This
=
impl_from_IWMPSettings
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
v
);
This
->
volume
=
v
;
if
(
!
This
->
filter_graph
)
{
hres
=
S_OK
;
}
else
{
/* IBasicAudio - [-10000, 0], wmp - [0, 100] */
v
=
10000
*
v
/
100
-
10000
;
hres
=
IBasicAudio_put_Volume
(
This
->
basic_audio
,
v
);
}
return
hres
;
if
(
!
This
->
filter_graph
)
return
S_OK
;
/* IBasicAudio - [-10000, 0], wmp - [0, 100] */
v
=
10000
*
v
/
100
-
10000
;
if
(
!
This
->
basic_audio
)
return
S_FALSE
;
return
IBasicAudio_put_Volume
(
This
->
basic_audio
,
v
);
}
static
HRESULT
WINAPI
WMPSettings_getMode
(
IWMPSettings
*
iface
,
BSTR
mode
,
VARIANT_BOOL
*
p
)
...
...
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