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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
primary.c
dlls/dsound/primary.c
+4
-0
No files found.
dlls/dsound/primary.c
View file @
14db7003
...
@@ -1000,7 +1000,11 @@ static HRESULT WINAPI PrimaryBufferImpl_Unlock(
...
@@ -1000,7 +1000,11 @@ static HRESULT WINAPI PrimaryBufferImpl_Unlock(
if
(
!
(
device
->
drvdesc
.
dwFlags
&
DSDDESC_DONTNEEDPRIMARYLOCK
)
&&
device
->
hwbuf
)
{
if
(
!
(
device
->
drvdesc
.
dwFlags
&
DSDDESC_DONTNEEDPRIMARYLOCK
)
&&
device
->
hwbuf
)
{
HRESULT
hres
;
HRESULT
hres
;
if
((
char
*
)
p1
-
(
char
*
)
device
->
buffer
+
x1
>
device
->
buflen
)
hres
=
DSERR_INVALIDPARAM
;
else
hres
=
IDsDriverBuffer_Unlock
(
device
->
hwbuf
,
p1
,
x1
,
p2
,
x2
);
hres
=
IDsDriverBuffer_Unlock
(
device
->
hwbuf
,
p1
,
x1
,
p2
,
x2
);
if
(
hres
!=
DS_OK
)
{
if
(
hres
!=
DS_OK
)
{
WARN
(
"IDsDriverBuffer_Unlock failed
\n
"
);
WARN
(
"IDsDriverBuffer_Unlock failed
\n
"
);
return
hres
;
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