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
fa1d997d
Commit
fa1d997d
authored
Dec 08, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Fixed returned string in capabilities.
parent
65a1796b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
audio.c
dlls/winmm/winealsa/audio.c
+6
-6
No files found.
dlls/winmm/winealsa/audio.c
View file @
fa1d997d
...
...
@@ -1091,7 +1091,6 @@ static int ALSA_AddDeviceToArray(WINE_WAVEDEV *ww, WINE_WAVEDEV **array,
static
int
ALSA_AddPlaybackDevice
(
snd_ctl_t
*
ctl
,
snd_pcm_t
*
pcm
,
const
char
*
pcmname
,
int
isdefault
)
{
WINE_WAVEDEV
wwo
;
WCHAR
nameW
[
MAXPNAMELEN
*
2
];
int
rc
;
memset
(
&
wwo
,
'\0'
,
sizeof
(
wwo
));
...
...
@@ -1100,8 +1099,9 @@ static int ALSA_AddPlaybackDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pc
if
(
rc
)
return
(
rc
);
MultiByteToWideChar
(
CP_ACP
,
0
,
wwo
.
ds_desc
.
szDesc
,
-
1
,
nameW
,
sizeof
(
nameW
)
/
sizeof
(
WCHAR
));
strcpyW
(
wwo
.
outcaps
.
szPname
,
nameW
);
MultiByteToWideChar
(
CP_ACP
,
0
,
wwo
.
ds_desc
.
szDesc
,
-
1
,
wwo
.
outcaps
.
szPname
,
sizeof
(
wwo
.
outcaps
.
szPname
)
/
sizeof
(
WCHAR
));
wwo
.
outcaps
.
szPname
[
sizeof
(
wwo
.
outcaps
.
szPname
)
/
sizeof
(
WCHAR
)
-
1
]
=
'\0'
;
wwo
.
outcaps
.
wMid
=
MM_CREATIVE
;
wwo
.
outcaps
.
wPid
=
MM_CREATIVE_SBP16_WAVEOUT
;
...
...
@@ -1131,7 +1131,6 @@ static int ALSA_AddPlaybackDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pc
static
int
ALSA_AddCaptureDevice
(
snd_ctl_t
*
ctl
,
snd_pcm_t
*
pcm
,
const
char
*
pcmname
,
int
isdefault
)
{
WINE_WAVEDEV
wwi
;
WCHAR
nameW
[
MAXPNAMELEN
*
2
];
int
rc
;
memset
(
&
wwi
,
'\0'
,
sizeof
(
wwi
));
...
...
@@ -1140,8 +1139,9 @@ static int ALSA_AddCaptureDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pcm
if
(
rc
)
return
(
rc
);
MultiByteToWideChar
(
CP_ACP
,
0
,
wwi
.
ds_desc
.
szDesc
,
-
1
,
nameW
,
sizeof
(
nameW
)
/
sizeof
(
WCHAR
));
strcpyW
(
wwi
.
incaps
.
szPname
,
nameW
);
MultiByteToWideChar
(
CP_ACP
,
0
,
wwi
.
ds_desc
.
szDesc
,
-
1
,
wwi
.
incaps
.
szPname
,
sizeof
(
wwi
.
incaps
.
szPname
)
/
sizeof
(
WCHAR
));
wwi
.
incaps
.
szPname
[
sizeof
(
wwi
.
incaps
.
szPname
)
/
sizeof
(
WCHAR
)
-
1
]
=
'\0'
;
wwi
.
incaps
.
wMid
=
MM_CREATIVE
;
wwi
.
incaps
.
wPid
=
MM_CREATIVE_SBP16_WAVEOUT
;
...
...
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