mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 10:55:50 +00:00
Dmitry Timoshkov <dmitry@codeweavers.com>
DrawTextEx should allocate text buffer on stack for thread safeness. svn path=/trunk/; revision=11869
This commit is contained in:
parent
17f1fe8577
commit
dc2d3110e4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue