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
4a3065c5
Commit
4a3065c5
authored
Nov 05, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Turn magic values into static constants.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6401ab45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
button.c
dlls/user32/button.c
+1
-1
edit.c
dlls/user32/edit.c
+1
-1
No files found.
dlls/user32/button.c
View file @
4a3065c5
...
...
@@ -201,7 +201,7 @@ static inline void paint_button( HWND hwnd, LONG style, UINT action )
/* retrieve the button text; returned buffer must be freed by caller */
static
inline
WCHAR
*
get_button_text
(
HWND
hwnd
)
{
INT
len
=
512
;
static
const
INT
len
=
512
;
WCHAR
*
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
buffer
)
InternalGetWindowText
(
hwnd
,
buffer
,
len
+
1
);
return
buffer
;
...
...
dlls/user32/edit.c
View file @
4a3065c5
...
...
@@ -2883,7 +2883,7 @@ static void EDIT_EM_SetLimitText(EDITSTATE *es, UINT limit)
*/
static
int
calc_min_set_margin_size
(
HDC
dc
,
INT
left
,
INT
right
)
{
WCHAR
magic_string
[]
=
{
'\''
,
'*'
,
'*'
,
'\''
,
0
};
static
const
WCHAR
magic_string
[]
=
{
'\''
,
'*'
,
'*'
,
'\''
,
0
};
SIZE
sz
;
GetTextExtentPointW
(
dc
,
magic_string
,
sizeof
(
magic_string
)
/
sizeof
(
WCHAR
)
-
1
,
&
sz
);
...
...
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