mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
win32u: Use 32-bit window extra size on wow64.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55582
This commit is contained in:
parent
5cbe3a6cb1
commit
46df584cc5
1 changed files with 12 additions and 8 deletions
|
@ -1125,14 +1125,6 @@ static const struct builtin_class_descr builtin_classes[] =
|
|||
.extra = DLGWINDOWEXTRA,
|
||||
.cursor = IDC_ARROW,
|
||||
},
|
||||
/* edit */
|
||||
{
|
||||
.name = "Edit",
|
||||
.style = CS_DBLCLKS | CS_PARENTDC,
|
||||
.proc = WINPROC_EDIT,
|
||||
.extra = sizeof(UINT64),
|
||||
.cursor = IDC_IBEAM,
|
||||
},
|
||||
/* icon title */
|
||||
{
|
||||
.name = MAKEINTRESOURCEA(ICONTITLE_CLASS_ATOM),
|
||||
|
@ -1233,7 +1225,19 @@ static void register_builtins(void)
|
|||
ULONG ret_len, i;
|
||||
void *ret_ptr;
|
||||
|
||||
/* 64-bit Windows use sizeof(UINT64) for all processes, while 32-bit Windows use 6 for extra
|
||||
* bytes size. Civilization II depends on the size being 6, so we use that even in wow64. */
|
||||
const struct builtin_class_descr edit_class =
|
||||
{
|
||||
.name = "Edit",
|
||||
.style = CS_DBLCLKS | CS_PARENTDC,
|
||||
.proc = WINPROC_EDIT,
|
||||
.extra = sizeof(void *) == 4 || NtCurrentTeb()->WowTebOffset ? 6 : sizeof(UINT64),
|
||||
.cursor = IDC_IBEAM,
|
||||
};
|
||||
|
||||
for (i = 0; i < ARRAYSIZE(builtin_classes); i++) register_builtin( &builtin_classes[i] );
|
||||
register_builtin( &edit_class );
|
||||
KeUserModeCallback( NtUserInitBuiltinClasses, NULL, 0, &ret_ptr, &ret_len );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue