diff --git a/dlls/gdiplus/stringformat.c b/dlls/gdiplus/stringformat.c index 6b20d235035..e328ffb249b 100644 --- a/dlls/gdiplus/stringformat.c +++ b/dlls/gdiplus/stringformat.c @@ -40,6 +40,7 @@ GpStatus WINGDIPAPI GdipCreateStringFormat(INT attr, LANGID lang, (*format)->attr = attr; (*format)->lang = lang; + (*format)->trimming = StringTrimmingCharacter; return Ok; } diff --git a/dlls/gdiplus/tests/stringformat.c b/dlls/gdiplus/tests/stringformat.c index 65bec8385e9..9cf46a43297 100644 --- a/dlls/gdiplus/tests/stringformat.c +++ b/dlls/gdiplus/tests/stringformat.c @@ -43,8 +43,7 @@ static void test_constructor(void) expect(HotkeyPrefixNone, n); expect(StringAlignmentNear, align); expect(StringAlignmentNear, align); - todo_wine - expect(StringTrimmingCharacter, trimming); + expect(StringTrimmingCharacter, trimming); stat = GdipDeleteStringFormat(format); expect(Ok, stat);