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

Alexandre Julliard julliard at winehq.org
Tue Feb 17 08:49:15 CST 2009


Module: wine
Branch: master
Commit: c404d00b3dfe0d686102f225ca38a9e1afb5a4c4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c404d00b3dfe0d686102f225ca38a9e1afb5a4c4

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Feb 16 22:30:07 2009 +0000

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

---

 dlls/gdi32/tests/font.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index cf6d3f9..dce15fc 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -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);




More information about the wine-cvs mailing list