[PATCH] dwrite/tests: Test locale name length in DrawGlyphRun()
Nikolay Sivov
nsivov at codeweavers.com
Sun Apr 9 23:37:26 CDT 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dwrite/tests/layout.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/dwrite/tests/layout.c b/dlls/dwrite/tests/layout.c
index 38b818c016..8a32303237 100644
--- a/dlls/dwrite/tests/layout.c
+++ b/dlls/dwrite/tests/layout.c
@@ -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);
--
2.11.0
More information about the wine-patches
mailing list