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
e3510c6b
Commit
e3510c6b
authored
Mar 27, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/reader: Avoid accessing an invalid stream index.
Fixes
d6c9ac94
.
parent
5cd5e7b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
reader.c
dlls/mfreadwrite/reader.c
+1
-2
No files found.
dlls/mfreadwrite/reader.c
View file @
e3510c6b
...
...
@@ -2365,7 +2365,6 @@ static HRESULT WINAPI src_reader_GetServiceForStream(IMFSourceReaderEx *iface, D
REFIID
riid
,
void
**
object
)
{
struct
source_reader
*
reader
=
impl_from_IMFSourceReaderEx
(
iface
);
struct
media_stream
*
stream
=
&
reader
->
streams
[
index
];
IUnknown
*
obj
=
NULL
;
HRESULT
hr
=
S_OK
;
...
...
@@ -2386,7 +2385,7 @@ static HRESULT WINAPI src_reader_GetServiceForStream(IMFSourceReaderEx *iface, D
if
(
index
>=
reader
->
stream_count
)
hr
=
MF_E_INVALIDSTREAMNUMBER
;
else
if
(
!
(
obj
=
(
IUnknown
*
)
stream
->
transform_service
))
else
if
(
!
(
obj
=
(
IUnknown
*
)
reader
->
streams
[
index
].
transform_service
))
hr
=
E_NOINTERFACE
;
break
;
}
...
...
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