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
e14ae47c
Commit
e14ae47c
authored
Oct 21, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Oct 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only return the number of bytes requested.
parent
e490139d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
mmsystem.c
dlls/winmm/mmsystem.c
+17
-13
No files found.
dlls/winmm/mmsystem.c
View file @
e14ae47c
...
...
@@ -1200,13 +1200,15 @@ UINT16 WINAPI waveOutGetDevCaps16(UINT16 uDeviceID,
ret
=
waveOutGetDevCapsA
(
uDeviceID
,
&
wocA
,
sizeof
(
wocA
));
if
(
ret
==
MMSYSERR_NOERROR
)
{
lpCaps
->
wMid
=
wocA
.
wMid
;
lpCaps
->
wPid
=
wocA
.
wPid
;
lpCaps
->
vDriverVersion
=
wocA
.
vDriverVersion
;
strcpy
(
lpCaps
->
szPname
,
wocA
.
szPname
);
lpCaps
->
dwFormats
=
wocA
.
dwFormats
;
lpCaps
->
wChannels
=
wocA
.
wChannels
;
lpCaps
->
dwSupport
=
wocA
.
dwSupport
;
WAVEOUTCAPS16
woc16
;
woc16
.
wMid
=
wocA
.
wMid
;
woc16
.
wPid
=
wocA
.
wPid
;
woc16
.
vDriverVersion
=
wocA
.
vDriverVersion
;
strcpy
(
woc16
.
szPname
,
wocA
.
szPname
);
woc16
.
dwFormats
=
wocA
.
dwFormats
;
woc16
.
wChannels
=
wocA
.
wChannels
;
woc16
.
dwSupport
=
wocA
.
dwSupport
;
memcpy
(
lpCaps
,
&
woc16
,
uSize
);
}
return
ret
;
}
...
...
@@ -1495,12 +1497,14 @@ UINT16 WINAPI waveInGetDevCaps16(UINT16 uDeviceID, LPWAVEINCAPS16 lpCaps,
if
(
lpCaps
==
NULL
)
return
MMSYSERR_INVALPARAM
;
if
(
ret
==
MMSYSERR_NOERROR
)
{
lpCaps
->
wMid
=
wicA
.
wMid
;
lpCaps
->
wPid
=
wicA
.
wPid
;
lpCaps
->
vDriverVersion
=
wicA
.
vDriverVersion
;
strcpy
(
lpCaps
->
szPname
,
wicA
.
szPname
);
lpCaps
->
dwFormats
=
wicA
.
dwFormats
;
lpCaps
->
wChannels
=
wicA
.
wChannels
;
WAVEINCAPS16
wic16
;
wic16
.
wMid
=
wicA
.
wMid
;
wic16
.
wPid
=
wicA
.
wPid
;
wic16
.
vDriverVersion
=
wicA
.
vDriverVersion
;
strcpy
(
wic16
.
szPname
,
wicA
.
szPname
);
wic16
.
dwFormats
=
wicA
.
dwFormats
;
wic16
.
wChannels
=
wicA
.
wChannels
;
memcpy
(
lpCaps
,
&
wic16
,
uSize
);
}
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