dwrite/tests: Fix fallback builder test skip.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-09-22 15:34:50 +03:00 committed by Alexandre Julliard
parent 38d0aa68da
commit f2090cb415
1 changed files with 5 additions and 7 deletions

View File

@ -4672,17 +4672,15 @@ static void test_FontFallbackBuilder(void)
hr = IDWriteFactory_QueryInterface(factory, &IID_IDWriteFactory2, (void**)&factory2); hr = IDWriteFactory_QueryInterface(factory, &IID_IDWriteFactory2, (void**)&factory2);
IDWriteFactory_Release(factory); IDWriteFactory_Release(factory);
if (factory2) {
EXPECT_REF(factory2, 1);
hr = IDWriteFactory2_CreateFontFallbackBuilder(factory2, &builder);
EXPECT_REF(factory2, 2);
}
if (hr != S_OK) { if (hr != S_OK) {
skip("IDWriteFontFallbackBuilder is not supported\n"); win_skip("IDWriteFontFallbackBuilder is not supported\n");
return; return;
} }
EXPECT_REF(factory2, 1);
hr = IDWriteFactory2_CreateFontFallbackBuilder(factory2, &builder);
EXPECT_REF(factory2, 2);
fallback = NULL; fallback = NULL;
EXPECT_REF(factory2, 2); EXPECT_REF(factory2, 2);
EXPECT_REF(builder, 1); EXPECT_REF(builder, 1);