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
b2dd2c5c
Commit
b2dd2c5c
authored
Apr 16, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Apr 16, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DSOUND_MixerNorm: do not compare unrelated pointers.
parent
8e8f0f52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
dsound_main.c
dlls/dsound/dsound_main.c
+4
-5
No files found.
dlls/dsound/dsound_main.c
View file @
b2dd2c5c
...
...
@@ -1826,14 +1826,13 @@ static INT DSOUND_MixerNorm(IDirectSoundBufferImpl *dsb, BYTE *buf, INT len)
if
((
dsb
->
freq
==
primarybuf
->
wfx
.
nSamplesPerSec
)
&&
(
dsb
->
wfx
.
wBitsPerSample
==
primarybuf
->
wfx
.
wBitsPerSample
)
&&
(
dsb
->
wfx
.
nChannels
==
primarybuf
->
wfx
.
nChannels
))
{
DWORD
bytesleft
=
dsb
->
buflen
-
dsb
->
playpos
;
TRACE
(
"(%p) Best case
\n
"
,
dsb
);
if
(
(
ibp
+
len
)
<
(
BYTE
*
)(
dsb
->
buffer
+
dsb
->
buflen
)
)
if
(
len
<=
bytesleft
)
memcpy
(
obp
,
ibp
,
len
);
else
{
/* wrap */
memcpy
(
obp
,
ibp
,
dsb
->
buflen
-
dsb
->
playpos
);
memcpy
(
obp
+
(
dsb
->
buflen
-
dsb
->
playpos
),
dsb
->
buffer
,
len
-
(
dsb
->
buflen
-
dsb
->
playpos
));
memcpy
(
obp
,
ibp
,
bytesleft
);
memcpy
(
obp
+
bytesleft
,
dsb
->
buffer
,
len
-
bytesleft
);
}
return
len
;
}
...
...
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