[Bug 28745] dsound/tests: uninitialized value used in enum_callback() in func_propset()

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jan 31 13:42:34 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=28745

Andrew Eikum <aeikum at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aeikum at codeweavers.com

--- Comment #1 from Andrew Eikum <aeikum at codeweavers.com> 2012-01-31 13:42:34 CST ---
The trouble here is pretty obvious. In <dlls/dsound/propset.c:enum_callback>,
the DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA struct never gets filled
all the way before being returned to the application. The problem with fixing
this is that it isn't "easy."

What we should probably do is build a table of devices on first entry, like
WinMM does. Then we can obtain all of that information at once, in one spot,
and have it always available. We'll also need to figure out some way of
reliably mapping DSound devices to WinMM devices, to fill the WaveDeviceId
slot.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list