From ba0ee349e6e2affd4b1db3f6cc8c9350aa672531 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 30 Nov 2004 17:21:16 +0000 Subject: [PATCH] DrawTextEx should allocate text buffer on stack for thread safeness. --- dlls/user/text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/user/text.c b/dlls/user/text.c index b3a4b10e181..04f52f1f2f5 100644 --- a/dlls/user/text.c +++ b/dlls/user/text.c @@ -846,7 +846,7 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count, const WCHAR *strPtr; WCHAR *retstr, *p_retstr; size_t size_retstr; - static WCHAR line[MAX_STATIC_BUFFER]; + WCHAR line[MAX_STATIC_BUFFER]; int len, lh, count=i_count; TEXTMETRICW tm; int lmargin = 0, rmargin = 0; @@ -858,8 +858,8 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count, int prefix_offset; ellipsis_data ellip; - TRACE("%s, %d, [(%ld,%ld),(%ld,%ld)]\n", debugstr_wn (str, count), count, - rect->left, rect->top, rect->right, rect->bottom); + TRACE("%s, %d, [%s] %08x\n", debugstr_wn (str, count), count, + wine_dbgstr_rect(rect), flags); if (dtp) TRACE("Params: iTabLength=%d, iLeftMargin=%d, iRightMargin=%d\n", dtp->iTabLength, dtp->iLeftMargin, dtp->iRightMargin);