dwrite/tests: Handle missing English font names.
Same as 0e4172a0c2
but for another test file.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7b540f8bc8
commit
a8e29f0ed7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue