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
f81982ae
Commit
f81982ae
authored
May 28, 2002
by
Sander van Leeuwen
Committed by
Alexandre Julliard
May 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixerGetControlDetailsW: translate strings for
MIXER_GETCONTROLDETAILSF_LISTTEXT option.
parent
129c8dc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
mmsystem.c
dlls/winmm/mmsystem.c
+24
-6
No files found.
dlls/winmm/mmsystem.c
View file @
f81982ae
...
...
@@ -1050,18 +1050,36 @@ UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ hmix, LPMIXERCONTROLDETAILS lpmcd,
break
;
case
MIXER_GETCONTROLDETAILSF_LISTTEXT
:
{
LPVOID
paDetailsW
=
lpmcd
->
paDetails
;
int
size
=
max
(
1
,
lpmcd
->
cChannels
)
*
sizeof
(
MIXERCONTROLDETAILS_LISTTEXTA
);
MIXERCONTROLDETAILS_LISTTEXTW
*
pDetailsW
=
(
MIXERCONTROLDETAILS_LISTTEXTW
*
)
lpmcd
->
paDetails
;
MIXERCONTROLDETAILS_LISTTEXTA
*
pDetailsA
;
int
size
=
max
(
1
,
lpmcd
->
cChannels
)
*
sizeof
(
MIXERCONTROLDETAILS_LISTTEXTA
);
int
i
;
if
(
lpmcd
->
u
.
cMultipleItems
!=
0
&&
lpmcd
->
u
.
cMultipleItems
!=
lpmcd
->
u
.
hwndOwner
)
{
if
(
lpmcd
->
u
.
cMultipleItems
!=
0
)
{
size
*=
lpmcd
->
u
.
cMultipleItems
;
}
lpmcd
->
paDetails
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
pDetailsA
=
(
MIXERCONTROLDETAILS_LISTTEXTA
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
lpmcd
->
paDetails
=
pDetailsA
;
lpmcd
->
cbDetails
=
sizeof
(
MIXERCONTROLDETAILS_LISTTEXTA
);
/* set up lpmcd->paDetails */
ret
=
mixerGetControlDetailsA
(
hmix
,
lpmcd
,
fdwDetails
);
/* copy from lpmcd->paDetails back to paDetailsW; */
HeapFree
(
GetProcessHeap
(),
0
,
lpmcd
->
paDetails
);
lpmcd
->
paDetails
=
paDetailsW
;
if
(
ret
==
MMSYSERR_NOERROR
)
{
for
(
i
=
0
;
i
<
lpmcd
->
u
.
cMultipleItems
*
lpmcd
->
cChannels
;
i
++
)
{
pDetailsW
->
dwParam1
=
pDetailsA
->
dwParam1
;
pDetailsW
->
dwParam2
=
pDetailsA
->
dwParam2
;
MultiByteToWideChar
(
CP_ACP
,
0
,
pDetailsA
->
szName
,
-
1
,
pDetailsW
->
szName
,
sizeof
(
pDetailsW
->
szName
)
/
sizeof
(
WCHAR
)
);
pDetailsA
++
;
pDetailsW
++
;
}
pDetailsA
-=
lpmcd
->
u
.
cMultipleItems
*
lpmcd
->
cChannels
;
pDetailsW
-=
lpmcd
->
u
.
cMultipleItems
*
lpmcd
->
cChannels
;
}
HeapFree
(
GetProcessHeap
(),
0
,
pDetailsA
);
lpmcd
->
paDetails
=
pDetailsW
;
lpmcd
->
cbDetails
=
sizeof
(
MIXERCONTROLDETAILS_LISTTEXTW
);
}
break
;
default:
...
...
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