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
14db7003
Commit
14db7003
authored
Jan 02, 2009
by
Jeff Zaroyko
Committed by
Alexandre Julliard
Jan 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Check for invalid parameter when unlocking primary buffers.
parent
73393fab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
primary.c
dlls/dsound/primary.c
+6
-2
No files found.
dlls/dsound/primary.c
View file @
14db7003
...
...
@@ -999,8 +999,12 @@ static HRESULT WINAPI PrimaryBufferImpl_Unlock(
if
(
!
(
device
->
drvdesc
.
dwFlags
&
DSDDESC_DONTNEEDPRIMARYLOCK
)
&&
device
->
hwbuf
)
{
HRESULT
hres
;
hres
=
IDsDriverBuffer_Unlock
(
device
->
hwbuf
,
p1
,
x1
,
p2
,
x2
);
if
((
char
*
)
p1
-
(
char
*
)
device
->
buffer
+
x1
>
device
->
buflen
)
hres
=
DSERR_INVALIDPARAM
;
else
hres
=
IDsDriverBuffer_Unlock
(
device
->
hwbuf
,
p1
,
x1
,
p2
,
x2
);
if
(
hres
!=
DS_OK
)
{
WARN
(
"IDsDriverBuffer_Unlock failed
\n
"
);
return
hres
;
...
...
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