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
be87fe8c
Commit
be87fe8c
authored
Sep 29, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Don't use state.buffer_size before it has been initialized.
parent
dc0cfe77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ds3d.c
dlls/dsound/tests/ds3d.c
+2
-2
ds3d8.c
dlls/dsound/tests/ds3d8.c
+2
-2
No files found.
dlls/dsound/tests/ds3d.c
View file @
be87fe8c
...
...
@@ -562,14 +562,14 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
}
/* try an offset past the end of the buffer */
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
state
.
buffer_size
,
0
,
&
buffer1
,
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
dsbcaps
.
dwBufferBytes
,
0
,
&
buffer1
,
&
length1
,
NULL
,
NULL
,
DSBLOCK_ENTIREBUFFER
);
ok
(
rc
==
DSERR_INVALIDPARAM
,
"IDirectSoundBuffer_Lock() should have "
"returned DSERR_INVALIDPARAM, returned %s
\n
"
,
DXGetErrorString8
(
rc
));
/* try a size larger than the buffer */
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
0
,
state
.
buffer_size
+
1
,
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
0
,
dsbcaps
.
dwBufferBytes
+
1
,
&
buffer1
,
&
length1
,
NULL
,
NULL
,
DSBLOCK_FROMWRITECURSOR
);
ok
(
rc
==
DSERR_INVALIDPARAM
,
"IDirectSoundBuffer_Lock() should have "
...
...
dlls/dsound/tests/ds3d8.c
View file @
be87fe8c
...
...
@@ -448,14 +448,14 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
}
/* try an offset past the end of the buffer */
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
state
.
buffer_size
,
0
,
&
buffer1
,
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
dsbcaps
.
dwBufferBytes
,
0
,
&
buffer1
,
&
length1
,
NULL
,
NULL
,
DSBLOCK_ENTIREBUFFER
);
ok
(
rc
==
DSERR_INVALIDPARAM
,
"IDirectSoundBuffer_Lock() should have "
"returned DSERR_INVALIDPARAM, returned %s
\n
"
,
DXGetErrorString8
(
rc
));
/* try a size larger than the buffer */
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
0
,
state
.
buffer_size
+
1
,
rc
=
IDirectSoundBuffer_Lock
(
*
dsbo
,
0
,
dsbcaps
.
dwBufferBytes
+
1
,
&
buffer1
,
&
length1
,
NULL
,
NULL
,
DSBLOCK_FROMWRITECURSOR
);
ok
(
rc
==
DSERR_INVALIDPARAM
,
"IDirectSoundBuffer_Lock() should have "
...
...
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