[Gdiplus 05/16] Test for GdipCloneFontFamily

Adam Petaccia adam at tpetaccia.com
Thu Jul 3 13:26:13 CDT 2008


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

diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index 2178c84..ebb2ef3 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -150,7 +150,7 @@ static void test_logfont(void)
 
 static void test_fontfamily (void)
 {
-    GpFontFamily* family;
+    GpFontFamily *family, *clonedFontFamily;
     WCHAR itsName[LF_FACESIZE];
     GpStatus stat;
 
@@ -180,7 +180,19 @@ static void test_fontfamily (void)
         expect (Ok, stat);
     }
 
+    /* Make sure we don't read old data */
+    ZeroMemory (itsName, sizeof(itsName));
+todo_wine
+{
+    stat = GdipCloneFontFamily(family, &clonedFontFamily);
+    expect (Ok, stat);
     GdipDeleteFontFamily(family);
+    stat = GdipGetFamilyName(clonedFontFamily, itsName, LANG_NEUTRAL);
+    expect(Ok, stat);
+    expect(0, lstrcmpiW(itsName, arial));
+}
+
+    GdipDeleteFontFamily(clonedFontFamily);
 }
 

-- 
1.5.4.3




More information about the wine-patches mailing list