gdi32/tests: GetTextFaceA called with a NULL buffer returns 0 on win98 and winMe.

This commit is contained in:
Huw Davies 2009-02-16 22:30:07 +00:00 committed by Alexandre Julliard
parent b55f6dfed5
commit c404d00b3d
1 changed files with 3 additions and 1 deletions

View File

@ -2658,7 +2658,9 @@ static void test_GetTextFace(void)
ok(bufA[0] == faceA[0] && bufA[1] == '\0', "GetTextFaceA didn't copy\n");
n = GetTextFaceA(dc, 0, NULL);
ok(n == sizeof faceA, "GetTextFaceA returned %d\n", n);
ok(n == sizeof faceA ||
broken(n == 0), /* win98, winMe */
"GetTextFaceA returned %d\n", n);
DeleteObject(SelectObject(dc, g));
ReleaseDC(NULL, dc);