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
b0e95d27
Commit
b0e95d27
authored
Dec 15, 2012
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Indentation fix.
parent
10fb1eac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
buffer.c
dlls/dsound/buffer.c
+2
-4
primary.c
dlls/dsound/primary.c
+2
-4
No files found.
dlls/dsound/buffer.c
View file @
b0e95d27
...
...
@@ -607,10 +607,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Unlock(IDirectSoundBuffer8 *iface,
if
(
!
p2
)
x2
=
0
;
if
((
p1
&&
((
BYTE
*
)
p1
<
This
->
buffer
->
memory
||
(
BYTE
*
)
p1
>=
This
->
buffer
->
memory
+
This
->
buflen
))
||
(
p2
&&
((
BYTE
*
)
p2
<
This
->
buffer
->
memory
||
(
BYTE
*
)
p2
>=
This
->
buffer
->
memory
+
This
->
buflen
)))
if
((
p1
&&
((
BYTE
*
)
p1
<
This
->
buffer
->
memory
||
(
BYTE
*
)
p1
>=
This
->
buffer
->
memory
+
This
->
buflen
))
||
(
p2
&&
((
BYTE
*
)
p2
<
This
->
buffer
->
memory
||
(
BYTE
*
)
p2
>=
This
->
buffer
->
memory
+
This
->
buflen
)))
return
DSERR_INVALIDPARAM
;
if
(
x1
||
x2
)
...
...
dlls/dsound/primary.c
View file @
b0e95d27
...
...
@@ -1085,10 +1085,8 @@ static HRESULT WINAPI PrimaryBufferImpl_Unlock(IDirectSoundBuffer *iface, void *
return
DSERR_PRIOLEVELNEEDED
;
}
if
((
p1
&&
((
BYTE
*
)
p1
<
device
->
buffer
||
(
BYTE
*
)
p1
>=
device
->
buffer
+
device
->
buflen
))
||
(
p2
&&
((
BYTE
*
)
p2
<
device
->
buffer
||
(
BYTE
*
)
p2
>=
device
->
buffer
+
device
->
buflen
)))
if
((
p1
&&
((
BYTE
*
)
p1
<
device
->
buffer
||
(
BYTE
*
)
p1
>=
device
->
buffer
+
device
->
buflen
))
||
(
p2
&&
((
BYTE
*
)
p2
<
device
->
buffer
||
(
BYTE
*
)
p2
>=
device
->
buffer
+
device
->
buflen
)))
return
DSERR_INVALIDPARAM
;
return
DS_OK
;
...
...
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