dlls/user32: Ensure that GetTabbedTextExtents returns 0 when nCount is 0. This resoves the issue reported in bug #26900.
Tim Hentenaar
tim at hentenaar.com
Sat Apr 23 06:36:12 CDT 2011
---
dlls/user32/text.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/text.c b/dlls/user32/text.c
index e34877f..4938a49 100644
--- a/dlls/user32/text.c
+++ b/dlls/user32/text.c
@@ -1281,6 +1281,10 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr,
int i, j;
int start = x;
+ /* Windows XP returns 0 if either of these are 0. */
+ if (!lpstr || count == 0)
+ return 0;
+
if (!lpTabPos)
cTabStops=0;
--
1.7.2.2
--=-2K0ICwkUFVjvk9drzvCv--
More information about the wine-patches
mailing list