From a8e29f0ed72d7feacbb6786f524a243eec571bc8 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 8 Mar 2021 11:30:48 +0300 Subject: [PATCH] dwrite/tests: Handle missing English font names. Same as 0e4172a0c22a6f293cc3c5e1de265b2a5b480880 but for another test file. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/dwrite/tests/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c index 8fe59ca5a1e..39a11b8be9a 100644 --- a/dlls/dwrite/tests/font.c +++ b/dlls/dwrite/tests/font.c @@ -2179,8 +2179,8 @@ static void get_enus_string(IDWriteLocalizedStrings *strings, WCHAR *buff, UINT3 hr = IDWriteLocalizedStrings_FindLocaleName(strings, L"en-us", &index, &exists); ok(hr == S_OK, "Unexpected hr %#x.\n", hr); - ok(exists, "got %d\n", exists); - + if (!exists) + index = 0; hr = IDWriteLocalizedStrings_GetString(strings, index, buff, size); ok(hr == S_OK, "got 0x%08x\n", hr); }