dwrite: Avoid a magic constant.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f38c260ce7
commit
9597ed5375
dlls/dwrite
|
@ -2507,7 +2507,7 @@ static UINT32 collection_find_family(struct dwrite_fontcollection *collection, c
|
|||
|
||||
for (j = 0; j < count; j++) {
|
||||
WCHAR buffer[255];
|
||||
hr = IDWriteLocalizedStrings_GetString(family_name, j, buffer, 255);
|
||||
hr = IDWriteLocalizedStrings_GetString(family_name, j, buffer, ARRAY_SIZE(buffer));
|
||||
if (SUCCEEDED(hr) && !strcmpiW(buffer, name))
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue