Module: wine Branch: master Commit: 8e899e0076bb88c6b1f3439a8daf90f05fa728cd URL: http://source.winehq.org/git/wine.git/?a=commit;h=8e899e0076bb88c6b1f3439a8d...
Author: Julius Schwartzenberg julius.schwartzenberg@gmail.com Date: Sun Oct 11 15:27:44 2009 +0200
user32: Change extra value for standard edit class to 6.
Civilization II crashes when trying to display an edit box when this value is anything other than six. It crashes in exactly the same way on Windows XP 64-bit.
---
dlls/user32/edit.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 38622cc..190e9c6 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -5425,7 +5425,11 @@ const struct builtin_class_descr EDIT_builtin_class = CS_DBLCLKS | CS_PARENTDC, /* style */ EditWndProcA, /* procA */ EditWndProcW, /* procW */ +#ifdef _WIN64 sizeof(EDITSTATE *), /* extra */ +#else + sizeof(EDITSTATE *) + sizeof(HANDLE16), /* extra */ +#endif IDC_IBEAM, /* cursor */ 0 /* brush */ };