dwrite: Update to IDWriteFactory7 stub.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-12-02 15:53:55 +03:00 committed by Alexandre Julliard
parent 85691e732a
commit 5536df1ee1
2 changed files with 303 additions and 240 deletions

File diff suppressed because it is too large Load diff

View file

@ -9248,7 +9248,7 @@ static void test_font_resource(void)
if (!(factory = create_factory_iid(&IID_IDWriteFactory6)))
{
skip("IDWriteFactory6 is not supported.\n");
win_skip("IDWriteFactory6 is not supported.\n");
return;
}
@ -9259,8 +9259,17 @@ static void test_font_resource(void)
ok(hr == S_OK, "Failed to get file object, hr %#x.\n", hr);
hr = IDWriteFactory6_CreateFontResource(factory, fontfile, 0, &resource);
todo_wine
ok(hr == S_OK, "Failed to create font resource, hr %#x.\n", hr);
if (FAILED(hr))
{
IDWriteFactory6_Release(factory);
IDWriteFontFile_Release(fontfile);
IDWriteFontFace_Release(fontface);
return;
}
hr = IDWriteFactory6_CreateFontResource(factory, fontfile, 0, &resource2);
ok(hr == S_OK, "Failed to create font resource, hr %#x.\n", hr);
ok(resource != resource2, "Unexpected instance.\n");