Commit 0072188b authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10/tests: Catch case where enumerated font name is too long.

parent 5b33f18c
......@@ -1993,6 +1993,11 @@ static void test_ScriptGetFontProperties(HDC hdc)
for (i = 0; i < efnd.total; i++)
{
if (strlen((char *)efnd.elf[i].elfFullName) >= LF_FACESIZE)
{
trace("Font name to long to test: %s\n",(char *)efnd.elf[i].elfFullName);
continue;
}
lstrcpyA(lf.lfFaceName, (char *)efnd.elf[i].elfFullName);
font = CreateFontIndirectA(&lf);
oldfont = SelectObject(hdc, font);
......@@ -2034,6 +2039,11 @@ static void test_ScriptGetFontProperties(HDC hdc)
for (i = 0; i < efnd.total; i++)
{
if (strlen((char *)efnd.elf[i].elfFullName) >= LF_FACESIZE)
{
trace("Font name to long to test: %s\n",(char *)efnd.elf[i].elfFullName);
continue;
}
lstrcpyA(lf.lfFaceName, (char *)efnd.elf[i].elfFullName);
font = CreateFontIndirectA(&lf);
oldfont = SelectObject(hdc, font);
......
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