Commit 9597ed53 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

dwrite: Avoid a magic constant.

parent f38c260c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment