PATCH: Convert HMIDI to void*

Michael Stefaniuc mstefani at redhat.de
Wed Jul 31 15:58:34 CDT 2002


On Wed, Jul 31, 2002 at 10:11:51PM +0200, Eric Pouech wrote:
> Michael Stefaniuc a écrit :
> > am I right that HMIDI and HMIDIIN, HMIDIOUT shouldn't be
> > interchangeable? Would save some conversions.
> yes & no
> HMIDIIN cannot be used for a HMIDIOUT (anyway, this will be checked
> internally by our mmsys implementation: all HMIDI???? handles are stored
> in the same table, and we never rely on the HMIDI??? handle type but on
> the actual object type)
> however, HMIDI can be used for a HMIDIIN (or HMIDIOUT or HMIDISTRM)
> handle (see midiConnect for example)
I expressed myself wrong, with interchangable i meant having
typedef HMIDI HMIDIIN
typedef HMIDI HMIDIOUT
typedef HMIDI HMIDISTRM
in include/mmsystem.h instead of
DECLARE_HANDLE(HMIDIIN);
DECLARE_HANDLE(HMIDIOUT);
DECLARE_HANDLE(HMIDISTRM);

I've suspected what you have described from reading the code (but it's
always good to get confirmation).

> it's true that midimap dll should use HMIDIOUT instead of HMIDI in its
> internal data structure
Do you want me to change that?

bye
	michael

-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20020731/427dd804/attachment.pgp


More information about the wine-devel mailing list