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
ee4d9c5e
Commit
ee4d9c5e
authored
Dec 05, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 05, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return an error if dwSize is not valid.
No need to dump dwFlags before it is initialized.
parent
6ae2a1f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
dsound_main.c
dlls/dsound/dsound_main.c
+2
-5
No files found.
dlls/dsound/dsound_main.c
View file @
ee4d9c5e
...
@@ -401,15 +401,12 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
...
@@ -401,15 +401,12 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
static
HRESULT
WINAPI
IDirectSoundImpl_GetCaps
(
LPDIRECTSOUND8
iface
,
LPDSCAPS
caps
)
{
static
HRESULT
WINAPI
IDirectSoundImpl_GetCaps
(
LPDIRECTSOUND8
iface
,
LPDSCAPS
caps
)
{
ICOM_THIS
(
IDirectSoundImpl
,
iface
);
ICOM_THIS
(
IDirectSoundImpl
,
iface
);
TRACE
(
"(%p,%p)
\n
"
,
This
,
caps
);
TRACE
(
"(%p,%p)
\n
"
,
This
,
caps
);
TRACE
(
"(flags=0x%08lx)
\n
"
,
caps
->
dwFlags
);
if
(
caps
==
NULL
)
if
(
caps
==
NULL
||
caps
->
dwSize
!=
sizeof
(
*
caps
)
)
return
DSERR_INVALIDPARAM
;
return
DSERR_INVALIDPARAM
;
/* We should check this value, not set it. See Inside DirectX, p215. */
caps
->
dwSize
=
sizeof
(
*
caps
);
caps
->
dwFlags
=
This
->
drvcaps
.
dwFlags
;
caps
->
dwFlags
=
This
->
drvcaps
.
dwFlags
;
TRACE
(
"(flags=0x%08lx)
\n
"
,
caps
->
dwFlags
);
/* FIXME: copy caps from This->drvcaps */
/* FIXME: copy caps from This->drvcaps */
caps
->
dwMinSecondarySampleRate
=
DSBFREQUENCY_MIN
;
caps
->
dwMinSecondarySampleRate
=
DSBFREQUENCY_MIN
;
...
...
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