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

Alexandre Julliard julliard at winehq.org
Mon Apr 10 15:37:17 CDT 2017


Module: wine
Branch: master
Commit: a0b0fac31b21b7ea92f7c3c62732448c1d04bf76
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a0b0fac31b21b7ea92f7c3c62732448c1d04bf76

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Apr 10 07:37:26 2017 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 38b818c..8a32303 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);




More information about the wine-cvs mailing list