From 03101b06c95b8677ad46d5470b02dcc7202a4429 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Tue, 30 Apr 2013 00:13:55 +0200 Subject: [PATCH] dwrite/tests: Avoid refcount test failures. --- dlls/dwrite/tests/font.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c index 91380613781..8404c225fed 100644 --- a/dlls/dwrite/tests/font.c +++ b/dlls/dwrite/tests/font.c @@ -444,19 +444,12 @@ if (0) /* crashes on native */ hr = IDWriteFont_CreateFontFace(font, &fontface); ok(hr == S_OK, "got 0x%08x\n", hr); - EXPECT_REF(font, 1); - EXPECT_REF(fontface, 2); hr = IDWriteFont_CreateFontFace(font, &fontface2); ok(hr == S_OK, "got 0x%08x\n", hr); ok(fontface == fontface2, "got %p, was %p\n", fontface2, fontface); - EXPECT_REF(fontface, 3); - EXPECT_REF(font, 1); + /* the fontface refcount is increased here */ - IDWriteFontFace_AddRef(fontface); - EXPECT_REF(font, 1); - EXPECT_REF(fontface, 4); - IDWriteFontFace_Release(fontface); IDWriteFontFace_Release(fontface); IDWriteFontFace_Release(fontface);