X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rostests%2Fapitests%2Fwin32nt%2Fntuser%2FNtUserCreateWindowEx.c;h=d8d153350ecc461b4900460368e2040c8c050664;hp=bb096217b69fe1092425fb89a5234ce85f2bdf6f;hb=935904f4a0b6bc89ceec9d4c01010ed834bc738a;hpb=a03264afb2df849068f47c23690bbb35389daa0a;ds=sidebyside diff --git a/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c b/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c index bb096217b69..d8d153350ec 100644 --- a/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c +++ b/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c @@ -61,6 +61,7 @@ START_TEST(NtUserCreateWindowEx) /* LARGE_STRING for NtUserCreateWindowEx */ LARGE_STRING l_dummy = {14, 32, 0, L"DummyMe"}; + LARGE_STRING l_empty = {0, 0, 0, L""}; LARGE_STRING l_wndName = {32, 32, 0, L""}; LARGE_STRING l_cls = {cls.Length, 32, 0, cls.Buffer}; LARGE_STRING l_ver_cls = {ver_cls.Length, 32, 0, ver_cls.Buffer}; @@ -182,6 +183,8 @@ START_TEST(NtUserCreateWindowEx) /* Check what return GetClassLong */ TEST(GetClassLong(hwnd, GCW_ATOM) == atom); + TEST(NtUserFindWindowEx(NULL, NULL, &cls, (UNICODE_STRING*)&l_empty, 0) == hwnd); + /* Finally destroy it */ DestroyWindow(hwnd); } @@ -245,4 +248,8 @@ START_TEST(NtUserCreateWindowEx) TEST(NtUserUnregisterClass(&another_cls, hinst, &outClsMnu) != 0); TEST(NtUserUnregisterClass(&menu, hinst, &outClsMnu) == 0); + /* Make sure that the classes got destroyed */ + TEST(NtUserGetWOWClass(hinst, &cls) == 0); + TEST(NtUserGetWOWClass(hinst, &ver_cls) == 0); + TEST(NtUserGetWOWClass(hinst, &another_cls) == 0); }