gdiplus: Add a test that shows GdipCreateFontFromLogfontW problem with empty FaceName.

This commit is contained in:
Nikolay Sivov 2008-07-29 01:12:33 +04:00 committed by Alexandre Julliard
parent 94ef37400d
commit 923918da9b
1 changed files with 9 additions and 0 deletions

View File

@ -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] = 0;
stat = GdipCreateFontFromLogfontW(hdc, &lfw, &font);
todo_wine {
expect(NotTrueTypeFont, stat);
}
memcpy(&lfw.lfFaceName, arial, 6 * sizeof(WCHAR));
stat = GdipCreateFontFromLogfontW(hdc, &lfw, &font);