mmdevapi: IsFormatSupported EXCLUSIVE mode never returns S_FALSE.

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


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.

	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: <>

More information about the wine-patches mailing list