diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 6454765d85c..68540e40ad7 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -36,6 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL (gdiplus); static const REAL mm_per_inch = 25.4; static const REAL inch_per_point = 1.0/72.0; +static GpFontCollection installedFontCollection = {0}; + static inline REAL get_dpi (void) { REAL dpi; @@ -936,5 +938,7 @@ GpStatus WINGDIPAPI GdipNewInstalledFontCollection( if (!fontCollection) return InvalidParameter; - return NotImplemented; + *fontCollection = &installedFontCollection; + + return Ok; } diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 6fbb8e279f0..0da5b2f7bc3 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -349,8 +349,8 @@ static void test_installedfonts (void) expect (InvalidParameter, stat); stat = GdipNewInstalledFontCollection(&collection); - todo_wine expect (Ok, stat); - todo_wine ok (collection != NULL, "got NULL font collection\n"); + expect (Ok, stat); + ok (collection != NULL, "got NULL font collection\n"); } START_TEST(font)