dwrite/tests: Test locale name length in DrawGlyphRun().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-04-10 07:37:26 +03:00 committed by Alexandre Julliard
parent d7d5d93e86
commit a0b0fac31b
1 changed files with 1 additions and 0 deletions

View File

@ -602,6 +602,7 @@ static HRESULT WINAPI testrenderer_DrawGlyphRun(IDWriteTextRenderer *iface,
entry.kind = DRAW_GLYPHRUN;
if (effect)
entry.kind |= DRAW_EFFECT;
ok(lstrlenW(descr->localeName) < LOCALE_NAME_MAX_LENGTH, "unexpectedly long locale name\n");
lstrcpyW(entry.locale, descr->localeName);
entry.glyphcount = run->glyphCount;
add_call(sequences, RENDERER_ID, &entry);