Author: mjansen
Date: Sat Aug 20 16:58:20 2016
New Revision: 72400
URL:
http://svn.reactos.org/svn/reactos?rev=72400&view=rev
Log:
[WIN32NT_APITEST] Add additional tests for NtUserCreateWindowEx by Sylvain Deverre.
ROSTESTS-237 #resolve #comment Thanks!
Modified:
trunk/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c
Modified: trunk/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/win32nt/ntuser/N…
==============================================================================
--- trunk/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c [iso-8859-1] Sat Aug 20
16:58:20 2016
@@ -57,6 +57,7 @@
UNICODE_STRING ver_cls = {12, 32, L"v2test"};
UNICODE_STRING another_cls = {10, 32, L"Dummy"};
UNICODE_STRING menu = {10, 10, L"MuMnu"};
+ UNICODE_STRING null_cls = {2, 2, L""};
/* LARGE_STRING for NtUserCreateWindowEx */
LARGE_STRING l_dummy = {14, 32, 0, L"DummyMe"};
@@ -116,10 +117,29 @@
0,
NULL);
+ TEST(NtUserRegisterClassExWOW(&wclex2, /* wndClass */
+ &cls, /* ClassName */
+ NULL, /* Version */
+ &clsMenuName, /* MenuName */
+ 0,
+ 0,
+ NULL) == 0);
+
+ TEST(NtUserRegisterClassExWOW(&wclex2, /* wndClass */
+ &cls, /* ClassName */
+ &null_cls, /* Version */
+ &clsMenuName, /* MenuName */
+ 0,
+ 0,
+ NULL) == 0);
+
TEST(NtUserGetWOWClass(hinst, &ver_cls) != 0);
-
- TEST(atom2 != 0);
+ TEST(NtUserGetWOWClass(hinst, &ver_cls) != NtUserGetWOWClass(hinst, &cls));
TEST(atom2 != 0);
TEST(atom == atom2 && (atom | atom2) != 0);
+
+ /* Create a window without versioned class */
+ TEST(CreateWnd(hinst, &l_cls, NULL, &l_wndName) == 0);
+ TEST(CreateWnd(hinst, &l_cls, &l_wndName, &l_wndName) == 0);
/* Now, create our first window */
hwnd = CreateWnd(hinst, &l_cls, &l_cls, &l_wndName);