[PATCH 3/7] windows.media.speech/tests: Add interface query tests.

Rémi Bernon rbernon at codeweavers.com
Mon Mar 15 14:42:26 CDT 2021


On 3/15/21 8:41 PM, Zebediah Figura (she/her) wrote:
> On 3/12/21 5:31 AM, Rémi Bernon wrote:
>> +START_TEST(statics)
>> +{
>> +    HMODULE combase;
>> +
>> +    if (!(combase = LoadLibraryW(L"combase.dll")))
>> +    {
>> +        win_skip("Failed to load combase.dll, skipping tests\n");
>> +        return;
>> +    }
>> +
>> +#define LOAD_FUNCPTR(x) \
>> +    if (!(p##x = (void*)GetProcAddress(combase, #x))) \
>> +    { \
>> +        win_skip("Failed to find %s in combase.dll, skipping tests.\n", #x); \
>> +        return; \
>> +    }
>> +
>> +    LOAD_FUNCPTR(RoActivateInstance);
>> +    LOAD_FUNCPTR(RoGetActivationFactory);
>> +    LOAD_FUNCPTR(RoInitialize);
>> +    LOAD_FUNCPTR(RoUninitialize);
>> +    LOAD_FUNCPTR(WindowsCreateString);
>> +    LOAD_FUNCPTR(WindowsDeleteString);
>> +#undef LOAD_FUNCPTR
>> +
>> +    test_SpeechSynthesizer();
>> +    test_VoiceInformation();
>> +}
>>
> 
> Is there a point in loading combase dynamically?
> 

No idea, this is what the combase tests are doing.
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list