Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
30209d86
Commit
30209d86
authored
Aug 08, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Always use 64-bit cbWndExtra for edit control.
parent
fc0753f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
edit.c
dlls/user32/edit.c
+1
-5
class.c
dlls/user32/tests/class.c
+3
-7
No files found.
dlls/user32/edit.c
View file @
30209d86
...
...
@@ -5265,11 +5265,7 @@ const struct builtin_class_descr EDIT_builtin_class =
L"Edit"
,
/* name */
CS_DBLCLKS
|
CS_PARENTDC
,
/* style */
WINPROC_EDIT
,
/* proc */
#ifdef __i386__
sizeof
(
EDITSTATE
*
)
+
sizeof
(
WORD
),
/* extra */
#else
sizeof
(
EDITSTATE
*
),
/* extra */
#endif
sizeof
(
UINT64
),
/* extra */
IDC_IBEAM
,
/* cursor */
0
/* brush */
};
dlls/user32/tests/class.c
View file @
30209d86
...
...
@@ -957,15 +957,11 @@ static const struct
{
const
char
name
[
9
];
int
value
;
int
badvalue
;
int
value64
;
/* 64-bit Windows use 64-bit size also for 32-bit applications */
}
extra_values
[]
=
{
{
"#32770"
,
30
,
30
},
/* Dialog */
#ifdef _WIN64
{
"Edit"
,
8
,
8
},
#else
{
"Edit"
,
6
,
8
},
/* Windows XP 64-bit returns 8 also to 32-bit applications */
#endif
{
"Edit"
,
6
,
8
},
};
static
void
test_extra_values
(
void
)
...
...
@@ -978,7 +974,7 @@ static void test_extra_values(void)
ok
(
ret
,
"GetClassInfo (0) failed for global class %s
\n
"
,
extra_values
[
i
].
name
);
if
(
!
ret
)
continue
;
ok
(
extra_values
[
i
].
value
==
wcx
.
cbWndExtra
||
broken
(
extra_values
[
i
].
badvalue
==
wcx
.
cbWndExtra
)
,
ok
(
extra_values
[
i
].
value
==
wcx
.
cbWndExtra
||
extra_values
[
i
].
value64
==
wcx
.
cbWndExtra
,
"expected %d, got %d
\n
"
,
extra_values
[
i
].
value
,
wcx
.
cbWndExtra
);
}
}
...
...
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