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
22da469b
Commit
22da469b
authored
Dec 01, 2004
by
Bill Medland
Committed by
Alexandre Julliard
Dec 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If the buffer is no longer static the names should reflect that.
Also minimise the use of the constant.
parent
418672f2
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 @
22da469b
...
...
@@ -838,7 +838,7 @@ static void TEXT_DrawUnderscore (HDC hdc, int x, int y, const WCHAR *str, int of
* 3 more than a null-terminated string). If this is not so then increase
* the allowance in DrawTextExA.
*/
#define MAX_
STATIC_
BUFFER 1024
#define MAX_BUFFER 1024
INT
WINAPI
DrawTextExW
(
HDC
hdc
,
LPWSTR
str
,
INT
i_count
,
LPRECT
rect
,
UINT
flags
,
LPDRAWTEXTPARAMS
dtp
)
{
...
...
@@ -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
;
WCHAR
line
[
MAX_
STATIC_
BUFFER
];
WCHAR
line
[
MAX_BUFFER
];
int
len
,
lh
,
count
=
i_count
;
TEXTMETRICW
tm
;
int
lmargin
=
0
,
rmargin
=
0
;
...
...
@@ -911,7 +911,7 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count,
do
{
len
=
MAX_STATIC_BUFFER
;
len
=
sizeof
(
line
)
/
sizeof
(
line
[
0
])
;
last_line
=
!
(
flags
&
DT_NOCLIP
)
&&
y
+
((
flags
&
DT_EDITCONTROL
)
?
2
*
lh
-
1
:
lh
)
>
rect
->
bottom
;
strPtr
=
TEXT_NextLineW
(
hdc
,
strPtr
,
&
count
,
line
,
&
len
,
width
,
flags
,
&
size
,
last_line
,
&
p_retstr
,
tabwidth
,
&
prefix_offset
,
&
ellip
);
...
...
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