Nikolay Sivov : gdiplus: Add a test that shows GdipCreateFontFromLogfontW problem with empty FaceName .

Alexandre Julliard julliard at winehq.org
Tue Jul 29 07:16:25 CDT 2008


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Tue Jul 29 01:12:33 2008 +0400

gdiplus: Add a test that shows GdipCreateFontFromLogfontW problem with empty FaceName.

---

 dlls/gdiplus/tests/font.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index ab0f814..8ce0ec6 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);




More information about the wine-cvs mailing list