[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [PATCH 2/5] dmusic: Enumerate ports for midi out and midi in devices in EnumPort.
From: Christian Costa <titan.costa () gmail ! com>
Date: 2012-03-29 18:45:06
Message-ID: 4F74ADB2.5090802 () gmail ! com
[Download RAW message or body]
Le 29/03/2012 20:25, Alexandre Julliard a =E9crit :
> Christian Costa<titan.costa@gmail.com> writes:
>
>> With this patch I get exactly the same output for ports caps (except gui=
d) as native.
>> I kept the comment regarding dmusic32 usage altough the native version
>> of dmusic I used does standard winmm calls to get port informations.
>> ---
>> dlls/dmusic/Makefile.in | 2 -
>> dlls/dmusic/dmusic.c | 120 ++++++++++++++++++++++++++++++++-------=
--------
>> 2 files changed, 82 insertions(+), 40 deletions(-)
> It doesn't work here:
>
> ../../../tools/runtest -q -P wine -M dmime.dll -T ../../.. -p dmime_test.=
exe.so performance.c&& touch performance.ok
> performance.c:111: Test failed: Got unexpected portcaps struct size: 0000=
0004
> make[1]: *** [performance.ok] Error 1
>
This happens in tests newly added by Andrew (dmusic: Support creating =
default ports with GUID_NULL).
In his test, the dwSize member of the structure DMUS_PORTCAPS is not =
initialized before getting port caps
This worked because before my patch only the Microsoft Synthetizer is =
enumerated and caps returned by the Synth GepCaps
sets the dwSize member.
I can sets the dwSize in my code but normally it's up to the caller to =
set the dwSize member. The callee should copy the number
of bytes specified by dwSize or just return an error.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic