[PATCH 15/25] mciseq: Fix some MCIERROR_* codes (related to auto-open).

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Fri Oct 5 04:12:15 CDT 2012


Hi,

MCI compound file drivers should recognize 3 modes of operation:
1. Open sequencer or waveaudio
 => only Capability and some Info flags are supported
2. Open with non-empty file name
3. Open with empty name for recording

+    if (wmm->hFile == 0)	return MCIERR_UNSUPPORTED_FUNCTION;
This looks like nothing but ensures compatible behaviour in mode 1.
It has an added benefit: with nearly all commands (even Stop!) unsupported
when the driver is opened without valid file, checks for uninitialized slots
become mostly superfluous.

Regards,
	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-mciseq-Fix-some-MCIERROR_-codes-related-to-auto-o.patch
Type: application/octet-stream
Size: 4900 bytes
Desc: 0015-mciseq-Fix-some-MCIERROR_-codes-related-to-auto-o.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20121005/0961eeb5/attachment.obj>


More information about the wine-patches mailing list