gdiplus: Create a static InstalledFontCollection object, currently empty.

This commit is contained in:
Vincent Povirk 2009-04-27 16:24:47 -05:00 committed by Alexandre Julliard
parent 31f2b8e1ea
commit 73eea0d05f
2 changed files with 7 additions and 3 deletions

View file

@ -36,6 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL (gdiplus);
static const REAL mm_per_inch = 25.4; static const REAL mm_per_inch = 25.4;
static const REAL inch_per_point = 1.0/72.0; static const REAL inch_per_point = 1.0/72.0;
static GpFontCollection installedFontCollection = {0};
static inline REAL get_dpi (void) static inline REAL get_dpi (void)
{ {
REAL dpi; REAL dpi;
@ -936,5 +938,7 @@ GpStatus WINGDIPAPI GdipNewInstalledFontCollection(
if (!fontCollection) if (!fontCollection)
return InvalidParameter; return InvalidParameter;
return NotImplemented; *fontCollection = &installedFontCollection;
return Ok;
} }

View file

@ -349,8 +349,8 @@ static void test_installedfonts (void)
expect (InvalidParameter, stat); expect (InvalidParameter, stat);
stat = GdipNewInstalledFontCollection(&collection); stat = GdipNewInstalledFontCollection(&collection);
todo_wine expect (Ok, stat); expect (Ok, stat);
todo_wine ok (collection != NULL, "got NULL font collection\n"); ok (collection != NULL, "got NULL font collection\n");
} }
START_TEST(font) START_TEST(font)