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
7d437222
Commit
7d437222
authored
Oct 27, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Oct 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only copy amount requested up to size of structure.
parent
48244607
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
mmsystem.c
dlls/winmm/mmsystem.c
+10
-8
No files found.
dlls/winmm/mmsystem.c
View file @
7d437222
...
...
@@ -222,12 +222,14 @@ UINT16 WINAPI mixerGetDevCaps16(UINT16 devid, LPMIXERCAPS16 mixcaps,
UINT
ret
=
mixerGetDevCapsA
(
devid
,
&
micA
,
sizeof
(
micA
));
if
(
ret
==
MMSYSERR_NOERROR
)
{
mixcaps
->
wMid
=
micA
.
wMid
;
mixcaps
->
wPid
=
micA
.
wPid
;
mixcaps
->
vDriverVersion
=
micA
.
vDriverVersion
;
strcpy
(
mixcaps
->
szPname
,
micA
.
szPname
);
mixcaps
->
fdwSupport
=
micA
.
fdwSupport
;
mixcaps
->
cDestinations
=
micA
.
cDestinations
;
MIXERCAPS16
mic16
;
mic16
.
wMid
=
micA
.
wMid
;
mic16
.
wPid
=
micA
.
wPid
;
mic16
.
vDriverVersion
=
micA
.
vDriverVersion
;
strcpy
(
mic16
.
szPname
,
micA
.
szPname
);
mic16
.
fdwSupport
=
micA
.
fdwSupport
;
mic16
.
cDestinations
=
micA
.
cDestinations
;
memcpy
(
mixcaps
,
&
mic16
,
min
(
size
,
sizeof
(
mic16
)));
}
return
ret
;
}
...
...
@@ -1208,7 +1210,7 @@ UINT16 WINAPI waveOutGetDevCaps16(UINT16 uDeviceID,
woc16
.
dwFormats
=
wocA
.
dwFormats
;
woc16
.
wChannels
=
wocA
.
wChannels
;
woc16
.
dwSupport
=
wocA
.
dwSupport
;
memcpy
(
lpCaps
,
&
woc16
,
uSize
);
memcpy
(
lpCaps
,
&
woc16
,
min
(
uSize
,
sizeof
(
woc16
))
);
}
return
ret
;
}
...
...
@@ -1504,7 +1506,7 @@ UINT16 WINAPI waveInGetDevCaps16(UINT16 uDeviceID, LPWAVEINCAPS16 lpCaps,
strcpy
(
wic16
.
szPname
,
wicA
.
szPname
);
wic16
.
dwFormats
=
wicA
.
dwFormats
;
wic16
.
wChannels
=
wicA
.
wChannels
;
memcpy
(
lpCaps
,
&
wic16
,
uSize
);
memcpy
(
lpCaps
,
&
wic16
,
min
(
uSize
,
sizeof
(
wic16
))
);
}
return
ret
;
}
...
...
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