From dc2d3110e415f307ed5f41c5cf9a475a1b478c27 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 29 Nov 2004 16:51:10 +0000 Subject: [PATCH] Dmitry Timoshkov DrawTextEx should allocate text buffer on stack for thread safeness. svn path=/trunk/; revision=11869 --- reactos/lib/user32/windows/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/font.c b/reactos/lib/user32/windows/font.c index 2a68e7ba1c0..449da90571a 100644 --- a/reactos/lib/user32/windows/font.c +++ b/reactos/lib/user32/windows/font.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: font.c,v 1.11 2004/08/15 21:36:29 chorns Exp $ +/* $Id: font.c,v 1.12 2004/11/29 16:51:10 navaraf Exp $ * * PROJECT: ReactOS user32.dll * FILE: lib/user32/windows/input.c @@ -991,7 +991,7 @@ 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;