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
a7e1753d
Commit
a7e1753d
authored
Aug 26, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Aug 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Use CP_UNIXCP instead of CP_ACP for strings obtained from native OS functions.
parent
bce9cd38
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
midi.c
dlls/winealsa.drv/midi.c
+2
-2
wavein.c
dlls/winealsa.drv/wavein.c
+3
-3
waveinit.c
dlls/winealsa.drv/waveinit.c
+2
-2
waveout.c
dlls/winealsa.drv/waveout.c
+3
-3
No files found.
dlls/winealsa.drv/midi.c
View file @
a7e1753d
...
...
@@ -1158,7 +1158,7 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
lstrcpynA
(
midiPortName
,
snd_seq_port_info_get_name
(
pinfo
),
MAXPNAMELEN
-
1
);
midiPortName
[
MAXPNAMELEN
-
1
]
=
0
;
}
MultiByteToWideChar
(
CP_
A
CP
,
0
,
midiPortName
,
-
1
,
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
midiPortName
,
-
1
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
szPname
,
sizeof
(
MidiOutDev
[
MODM_NumDevs
].
caps
.
szPname
)
/
sizeof
(
WCHAR
));
...
...
@@ -1223,7 +1223,7 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
lstrcpynA
(
midiPortName
,
snd_seq_port_info_get_name
(
pinfo
),
MAXPNAMELEN
-
1
);
midiPortName
[
MAXPNAMELEN
-
1
]
=
0
;
}
MultiByteToWideChar
(
CP_
A
CP
,
0
,
midiPortName
,
-
1
,
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
midiPortName
,
-
1
,
MidiInDev
[
MIDM_NumDevs
].
caps
.
szPname
,
sizeof
(
MidiInDev
[
MIDM_NumDevs
].
caps
.
szPname
)
/
sizeof
(
WCHAR
));
MidiInDev
[
MIDM_NumDevs
].
state
=
0
;
...
...
dlls/winealsa.drv/wavein.c
View file @
a7e1753d
...
...
@@ -719,7 +719,7 @@ static DWORD widDevInterfaceSize(UINT wDevID, LPDWORD dwParam1)
{
TRACE
(
"(%u, %p)
\n
"
,
wDevID
,
dwParam1
);
*
dwParam1
=
MultiByteToWideChar
(
CP_
A
CP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
*
dwParam1
=
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
NULL
,
0
)
*
sizeof
(
WCHAR
);
return
MMSYSERR_NOERROR
;
}
...
...
@@ -729,10 +729,10 @@ static DWORD widDevInterfaceSize(UINT wDevID, LPDWORD dwParam1)
*/
static
DWORD
widDevInterface
(
UINT
wDevID
,
PWCHAR
dwParam1
,
DWORD
dwParam2
)
{
if
(
dwParam2
>=
MultiByteToWideChar
(
CP_
A
CP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
if
(
dwParam2
>=
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
NULL
,
0
)
*
sizeof
(
WCHAR
))
{
MultiByteToWideChar
(
CP_
A
CP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
dwParam1
,
dwParam2
/
sizeof
(
WCHAR
));
return
MMSYSERR_NOERROR
;
}
...
...
dlls/winealsa.drv/waveinit.c
View file @
a7e1753d
...
...
@@ -490,7 +490,7 @@ static int ALSA_AddPlaybackDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pc
if
(
rc
)
return
(
rc
);
MultiByteToWideChar
(
CP_
A
CP
,
0
,
wwo
.
ds_desc
.
szDesc
,
-
1
,
MultiByteToWideChar
(
CP_
UNIX
CP
,
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'
;
...
...
@@ -530,7 +530,7 @@ static int ALSA_AddCaptureDevice(snd_ctl_t *ctl, snd_pcm_t *pcm, const char *pcm
if
(
rc
)
return
(
rc
);
MultiByteToWideChar
(
CP_
A
CP
,
0
,
wwi
.
ds_desc
.
szDesc
,
-
1
,
MultiByteToWideChar
(
CP_
UNIX
CP
,
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'
;
...
...
dlls/winealsa.drv/waveout.c
View file @
a7e1753d
...
...
@@ -1131,7 +1131,7 @@ static DWORD wodDevInterfaceSize(UINT wDevID, LPDWORD dwParam1)
{
TRACE
(
"(%u, %p)
\n
"
,
wDevID
,
dwParam1
);
*
dwParam1
=
MultiByteToWideChar
(
CP_
A
CP
,
0
,
WOutDev
[
wDevID
].
interface_name
,
-
1
,
*
dwParam1
=
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
WOutDev
[
wDevID
].
interface_name
,
-
1
,
NULL
,
0
)
*
sizeof
(
WCHAR
);
return
MMSYSERR_NOERROR
;
}
...
...
@@ -1141,10 +1141,10 @@ static DWORD wodDevInterfaceSize(UINT wDevID, LPDWORD dwParam1)
*/
static
DWORD
wodDevInterface
(
UINT
wDevID
,
PWCHAR
dwParam1
,
DWORD
dwParam2
)
{
if
(
dwParam2
>=
MultiByteToWideChar
(
CP_
A
CP
,
0
,
WOutDev
[
wDevID
].
interface_name
,
-
1
,
if
(
dwParam2
>=
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
WOutDev
[
wDevID
].
interface_name
,
-
1
,
NULL
,
0
)
*
sizeof
(
WCHAR
))
{
MultiByteToWideChar
(
CP_
A
CP
,
0
,
WOutDev
[
wDevID
].
interface_name
,
-
1
,
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
WOutDev
[
wDevID
].
interface_name
,
-
1
,
dwParam1
,
dwParam2
/
sizeof
(
WCHAR
));
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