From 923918da9b8ee3d9085820c608e2ab01375807a6 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 29 Jul 2008 01:12:33 +0400 Subject: [PATCH] gdiplus: Add a test that shows GdipCreateFontFromLogfontW problem with empty FaceName. --- dlls/gdiplus/tests/font.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index ab0f814fa62..8ce0ec63c37 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -96,6 +96,15 @@ static void test_logfont(void) GdipCreateFromHDC(hdc, &graphics); memset(&lfw, 0, sizeof(LOGFONTW)); memset(&lfw2, 0xff, sizeof(LOGFONTW)); + + /* empty FaceName */ + lfw.lfFaceName[0] = 0; + stat = GdipCreateFontFromLogfontW(hdc, &lfw, &font); + +todo_wine { + expect(NotTrueTypeFont, stat); +} + memcpy(&lfw.lfFaceName, arial, 6 * sizeof(WCHAR)); stat = GdipCreateFontFromLogfontW(hdc, &lfw, &font);