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
17a83723
Commit
17a83723
authored
Aug 11, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Aug 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only copy number of bytes specified up to size of DevCaps structure.
parent
9719aace
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
mixer.c
dlls/winmm/wineoss/mixer.c
+9
-6
No files found.
dlls/winmm/wineoss/mixer.c
View file @
17a83723
...
...
@@ -395,19 +395,22 @@ static BOOL MIX_SetRecSrc(struct mixer* mix, unsigned mask)
static
DWORD
MIX_GetDevCaps
(
WORD
wDevID
,
LPMIXERCAPSA
lpCaps
,
DWORD
dwSize
)
{
struct
mixer
*
mix
;
MIXERCAPSA
capsA
;
TRACE
(
"(%04X, %p, %lu);
\n
"
,
wDevID
,
lpCaps
,
dwSize
);
if
(
lpCaps
==
NULL
)
return
MMSYSERR_INVALPARAM
;
if
(
!
(
mix
=
MIX_Get
(
wDevID
)))
return
MMSYSERR_BADDEVICEID
;
lpCaps
->
wMid
=
WINE_MIXER_MANUF_ID
;
lpCaps
->
wPid
=
WINE_MIXER_PRODUCT_ID
;
lpCaps
->
vDriverVersion
=
WINE_MIXER_VERSION
;
strcpy
(
lpCaps
->
szPname
,
WINE_MIXER_NAME
);
capsA
.
wMid
=
WINE_MIXER_MANUF_ID
;
capsA
.
wPid
=
WINE_MIXER_PRODUCT_ID
;
capsA
.
vDriverVersion
=
WINE_MIXER_VERSION
;
strcpy
(
capsA
.
szPname
,
WINE_MIXER_NAME
);
lpCaps
->
cDestinations
=
2
;
/* speakers & record */
lpCaps
->
fdwSupport
=
0
;
/* No bits defined yet */
capsA
.
cDestinations
=
2
;
/* speakers & record */
capsA
.
fdwSupport
=
0
;
/* No bits defined yet */
memcpy
(
lpCaps
,
&
capsA
,
min
(
dwSize
,
sizeof
(
capsA
)));
return
MMSYSERR_NOERROR
;
}
...
...
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