DrawTextEx should allocate text buffer on stack for thread safeness
Dmitry Timoshkov
dmitry at baikal.ru
Mon Nov 29 05:46:06 CST 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
DrawTextEx should allocate text buffer on stack for thread safeness.
--- cvs/hq/wine/dlls/user/text.c 2004-09-02 17:23:55.000000000 +0900
+++ wine/dlls/user/text.c 2004-11-29 09:05:01.000000000 +0800
@@ -846,7 +846,7 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR
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
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);
More information about the wine-patches
mailing list