Author: gadamopoulos
Date: Sun Feb 12 12:11:18 2017
New Revision: 73783

URL: http://svn.reactos.org/svn/reactos?rev=73783&view=rev
Log:
[WIN32KNT_APITEST]: -Make sure that NtUserUnregisterClass works when it gets 
the versioned class name. Show that NtUserFindWindowEx needs the non versioned 
class name.

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/NtUserCreateWindowEx.c?rev=73783&r1=73782&r2=73783&view=diff
==============================================================================
--- trunk/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c       
[iso-8859-1] (original)
+++ trunk/rostests/apitests/win32nt/ntuser/NtUserCreateWindowEx.c       
[iso-8859-1] Sun Feb 12 12:11:18 2017
@@ -61,6 +61,7 @@
 
     /* 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};
@@ -181,6 +182,8 @@
 
         /* 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 @@
     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);
+}


Reply via email to