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
76848805
Commit
76848805
authored
Aug 31, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Reset riff chunk type to 0 when it is invalid.
parent
52d3f7ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
dmobject.c
dlls/dmusic/dmobject.c
+4
-5
No files found.
dlls/dmusic/dmobject.c
View file @
76848805
...
...
@@ -338,11 +338,10 @@ HRESULT stream_get_chunk(IStream *stream, struct chunk_entry *chunk)
}
}
if
(
chunk
->
id
==
FOURCC_LIST
||
chunk
->
id
==
FOURCC_RIFF
)
{
hr
=
stream_read
(
stream
,
&
chunk
->
type
,
sizeof
(
FOURCC
));
if
(
hr
!=
S_OK
)
return
hr
!=
S_FALSE
?
hr
:
E_FAIL
;
}
if
(
chunk
->
id
!=
FOURCC_LIST
&&
chunk
->
id
!=
FOURCC_RIFF
)
chunk
->
type
=
0
;
else
if
((
hr
=
stream_read
(
stream
,
&
chunk
->
type
,
sizeof
(
FOURCC
)))
!=
S_OK
)
return
hr
!=
S_FALSE
?
hr
:
E_FAIL
;
TRACE_
(
dmfile
)(
"Returning %s
\n
"
,
debugstr_chunk
(
chunk
));
...
...
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