Nikolay Sivov : user32/tests: Test that class data is set with wrong size value too.
Alexandre Julliard
julliard at winehq.org
Mon Jul 4 13:46:05 CDT 2011
Module: wine
Branch: master
Commit: 4843cff6ef9fee3b04d98975da22a89dd1531169
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4843cff6ef9fee3b04d98975da22a89dd1531169
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Jul 3 15:06:52 2011 +0400
user32/tests: Test that class data is set with wrong size value too.
---
dlls/user32/tests/class.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index ed288aa..57d3632 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -954,22 +954,28 @@ if (0) { /* crashes under XP */
"expected ERROR_NOACCESS, got %d\n", GetLastError());
wcx.cbSize = 0;
+ wcx.lpfnWndProc = NULL;
SetLastError(0xdeadbeef);
ret = GetClassInfoExA(0, "static", &wcx);
ok(ret, "GetClassInfoExA() error %d\n", GetLastError());
ok(wcx.cbSize == 0, "expected 0, got %u\n", wcx.cbSize);
+ ok(wcx.lpfnWndProc != NULL, "got null proc\n");
wcx.cbSize = sizeof(wcx) - 1;
+ wcx.lpfnWndProc = NULL;
SetLastError(0xdeadbeef);
ret = GetClassInfoExA(0, "static", &wcx);
ok(ret, "GetClassInfoExA() error %d\n", GetLastError());
ok(wcx.cbSize == sizeof(wcx) - 1, "expected sizeof(wcx)-1, got %u\n", wcx.cbSize);
+ ok(wcx.lpfnWndProc != NULL, "got null proc\n");
wcx.cbSize = sizeof(wcx) + 1;
+ wcx.lpfnWndProc = NULL;
SetLastError(0xdeadbeef);
ret = GetClassInfoExA(0, "static", &wcx);
ok(ret, "GetClassInfoExA() error %d\n", GetLastError());
ok(wcx.cbSize == sizeof(wcx) + 1, "expected sizeof(wcx)+1, got %u\n", wcx.cbSize);
+ ok(wcx.lpfnWndProc != NULL, "got null proc\n");
}
START_TEST(class)
More information about the wine-cvs
mailing list