dlls/user32/test: Added test case to ensure that GetTabbedTextExtentA() returns zero when nCount is zero.
Tim Hentenaar
tim at hentenaar.com
Sat Apr 23 06:54:34 CDT 2011
---
dlls/user32/tests/text.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/text.c b/dlls/user32/tests/text.c
index 88ea6b5..b45a312 100644
--- a/dlls/user32/tests/text.c
+++ b/dlls/user32/tests/text.c
@@ -617,6 +617,9 @@ static void test_TabbedText(void)
ret = GetTextMetricsA( hdc, &tm);
ok( ret, "GetTextMetrics error %u\n", GetLastError());
+ extent = GetTabbedTextExtentA( hdc, "x", 0, 1, tabs);
+ ok( extent == 0, "GetTabbedTextExtentA returned non-zero on nCount == 0\n");
+
extent = GetTabbedTextExtentA( hdc, "x", 1, 1, tabs);
cx = LOWORD( extent);
cy = HIWORD( extent);
--
1.7.2.2
--=-r8K9DDzziW0RoBRHj0Tz--
More information about the wine-patches
mailing list