mmdevapi: IsFormatSupported EXCLUSIVE mode never returns S_FALSE.

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Fri Oct 28 03:16:06 CDT 2011


Hi,

this will prevent apps that use
IsFormatSupported(mode, fmt, &outfmt) regardless of
mode from leaking memory in Wine.

I believe MS accepts
IsFormatSupported(mode, fmt, &outfmt) and
Initialize(mode, period, duration)
in both modes even though
 - outfmt is always zeroed in excl. mode
 - period is ignored in shared mode
so that app code can be written to easily work with
both modes, not requiring ignored parameters to be 0,
even though MSDN asks them to be zero in that mode.

Regards,
	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mmdevapi-IsFormatSupported-EXCLUSIVE-mode-never-ret.patch
Type: application/octet-stream
Size: 3859 bytes
Desc: 0001-mmdevapi-IsFormatSupported-EXCLUSIVE-mode-never-ret.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20111028/8dab0b38/attachment-0001.obj>


More information about the wine-patches mailing list