Author: janderwald
Date: Fri Apr 2 15:49:10 2010
New Revision: 46680
URL:
http://svn.reactos.org/svn/reactos?rev=46680&view=rev
Log:
[MMIXER]
- Copy device name when initializing WAVEINCAPS / WAVEOUTCAPS
- Fixes display wave device name in cpl / waveInGetDevCaps / waveOutGetDevCaps
Modified:
trunk/reactos/lib/drivers/sound/mmixer/wave.c
Modified: trunk/reactos/lib/drivers/sound/mmixer/wave.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmixer/w…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mmixer/wave.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mmixer/wave.c [iso-8859-1] Fri Apr 2 15:49:10 2010
@@ -360,6 +360,17 @@
WaveInfo->DeviceId = MixerData->DeviceId;
WaveInfo->PinId = PinId;
+
+ /* copy device name */
+ if (bWaveIn)
+ {
+ wcscpy(WaveInfo->u.InCaps.szPname, DeviceName);
+ }
+ else
+ {
+ wcscpy(WaveInfo->u.OutCaps.szPname, DeviceName);
+ }
+
/* FIXME determine manufacturer / product id */
if (bWaveIn)
{
@@ -408,6 +419,8 @@
/* free dataranges buffer */
MixerContext->Free(MultipleItem);
+
+
if (bWaveIn)