From f2090cb415bef834d5d8c993feee16cc6e071006 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 22 Sep 2017 15:34:50 +0300 Subject: [PATCH] dwrite/tests: Fix fallback builder test skip. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/dwrite/tests/layout.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dlls/dwrite/tests/layout.c b/dlls/dwrite/tests/layout.c index ba3e8526643..493eaf317f2 100644 --- a/dlls/dwrite/tests/layout.c +++ b/dlls/dwrite/tests/layout.c @@ -4672,17 +4672,15 @@ static void test_FontFallbackBuilder(void) hr = IDWriteFactory_QueryInterface(factory, &IID_IDWriteFactory2, (void**)&factory2); IDWriteFactory_Release(factory); - if (factory2) { - EXPECT_REF(factory2, 1); - hr = IDWriteFactory2_CreateFontFallbackBuilder(factory2, &builder); - EXPECT_REF(factory2, 2); - } - if (hr != S_OK) { - skip("IDWriteFontFallbackBuilder is not supported\n"); + win_skip("IDWriteFontFallbackBuilder is not supported\n"); return; } + EXPECT_REF(factory2, 1); + hr = IDWriteFactory2_CreateFontFallbackBuilder(factory2, &builder); + EXPECT_REF(factory2, 2); + fallback = NULL; EXPECT_REF(factory2, 2); EXPECT_REF(builder, 1);