[1/4] gdiplus: Add a test that shows GdipCreateFontFromLogfontW problem with empty FaceName
Nikolay Sivov
bunglehead at gmail.com
Mon Jul 28 16:12:33 CDT 2008
Changelog:
- 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..ae872dc 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] = (WCHAR)'\0';
+ stat = GdipCreateFontFromLogfontW(hdc, &lfw, &font);
+
+todo_wine {
+ expect(NotTrueTypeFont, stat);
+}
+
memcpy(&lfw.lfFaceName, arial, 6 * sizeof(WCHAR));
stat = GdipCreateFontFromLogfontW(hdc, &lfw, &font);
--
1.4.4.4
More information about the wine-patches
mailing list