Detlef Riekenberg : dwrite/tests: Avoid refcount test failures.
Module: wine Branch: master Commit: 03101b06c95b8677ad46d5470b02dcc7202a4429 URL: http://source.winehq.org/git/wine.git/?a=commit;h=03101b06c95b8677ad46d5470b... Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Tue Apr 30 00:13:55 2013 +0200 dwrite/tests: Avoid refcount test failures. --- dlls/dwrite/tests/font.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c index 9138061..8404c22 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);
participants (1)
-
Alexandre Julliard