mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Dmitry Timoshkov <[email protected]>
DrawTextEx should allocate text buffer on stack for thread safeness. svn path=/trunk/; revision=11869
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user