Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ba0ee349
Commit
ba0ee349
authored
Nov 30, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DrawTextEx should allocate text buffer on stack for thread safeness.
parent
7e11e528
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
text.c
dlls/user/text.c
+3
-3
No files found.
dlls/user/text.c
View file @
ba0ee349
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment