[PATCH] Fix for bug #2181. The test passes on win98 & winxp. Changes the extra value of the standard edit class from 4 to 6.
Julius Schwartzenberg
julius.schwartzenberg at gmail.com
Sat Oct 3 15:02:53 CDT 2009
---
dlls/user32/edit.c | 2 +-
dlls/user32/tests/edit.c | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 8ad945b..53eb052 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -5416,7 +5416,7 @@ const struct builtin_class_descr EDIT_builtin_class =
CS_DBLCLKS | CS_PARENTDC, /* style */
EditWndProcA, /* procA */
EditWndProcW, /* procW */
- sizeof(EDITSTATE *), /* extra */
+ 6, /* extra */
IDC_IBEAM, /* cursor */
0 /* brush */
};
diff --git a/dlls/user32/tests/edit.c b/dlls/user32/tests/edit.c
index 5ca012e..03c2173 100644
--- a/dlls/user32/tests/edit.c
+++ b/dlls/user32/tests/edit.c
@@ -2260,6 +2260,15 @@ static void test_dialogmode(void)
destroy_child_editcontrol(hwEdit);
}
+static void test_extra_value()
+{
+ WNDCLASSEX cls;
+ int r;
+ GetClassInfoEx(GetModuleHandle(NULL),"Edit",&cls);
+ r = cls.cbWndExtra;
+ ok(6 == r, "expected 6, got %d\n", r);
+}
+
START_TEST(edit)
{
hinst = GetModuleHandleA(NULL);
@@ -2285,6 +2294,7 @@ START_TEST(edit)
test_child_edit_wmkeydown();
test_fontsize();
test_dialogmode();
+ test_extra_value()
UnregisterWindowClasses();
}
--
1.5.4.3
--------------040202020004070101030109--
More information about the wine-devel
mailing list