Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
182338ba
Commit
182338ba
authored
Sep 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Avoid crashing in traces if wave doesn't have a WSMPL.
parent
2a1fd985
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
wave.c
dlls/dmusic/wave.c
+11
-8
No files found.
dlls/dmusic/wave.c
View file @
182338ba
...
...
@@ -199,14 +199,17 @@ HRESULT wave_create_from_chunk(IStream *stream, struct chunk_entry *parent, IUnk
TRACE
(
" - wBitsPerSample: %u
\n
"
,
This
->
format
->
wBitsPerSample
);
TRACE
(
" - cbSize: %u
\n
"
,
This
->
format
->
cbSize
);
}
TRACE
(
" - sample: {size: %lu, unity_note: %u, fine_tune: %d, attenuation: %ld, options: %#lx, loops: %lu}
\n
"
,
This
->
sample
->
head
.
cbSize
,
This
->
sample
->
head
.
usUnityNote
,
This
->
sample
->
head
.
sFineTune
,
This
->
sample
->
head
.
lAttenuation
,
This
->
sample
->
head
.
fulOptions
,
This
->
sample
->
head
.
cSampleLoops
);
for
(
i
=
0
;
i
<
This
->
sample
->
head
.
cSampleLoops
;
i
++
)
TRACE
(
" - loops[%u]: {size: %lu, type: %lu, start: %lu, length: %lu}
\n
"
,
i
,
This
->
sample
->
loops
[
i
].
cbSize
,
This
->
sample
->
loops
[
i
].
ulType
,
This
->
sample
->
loops
[
i
].
ulStart
,
This
->
sample
->
loops
[
i
].
ulLength
);
if
(
This
->
sample
)
{
TRACE
(
" - sample: {size: %lu, unity_note: %u, fine_tune: %d, attenuation: %ld, options: %#lx, loops: %lu}
\n
"
,
This
->
sample
->
head
.
cbSize
,
This
->
sample
->
head
.
usUnityNote
,
This
->
sample
->
head
.
sFineTune
,
This
->
sample
->
head
.
lAttenuation
,
This
->
sample
->
head
.
fulOptions
,
This
->
sample
->
head
.
cSampleLoops
);
for
(
i
=
0
;
i
<
This
->
sample
->
head
.
cSampleLoops
;
i
++
)
TRACE
(
" - loops[%u]: {size: %lu, type: %lu, start: %lu, length: %lu}
\n
"
,
i
,
This
->
sample
->
loops
[
i
].
cbSize
,
This
->
sample
->
loops
[
i
].
ulType
,
This
->
sample
->
loops
[
i
].
ulStart
,
This
->
sample
->
loops
[
i
].
ulLength
);
}
}
*
ret_iface
=
iface
;
...
...
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