Author: tfaber
Date: Mon Oct 26 12:03:09 2015
New Revision: 69707
URL: 
http://svn.reactos.org/svn/reactos?rev=69707&view=rev
Log:
[USER32_APITEST]
- Add a test for the bug in win32k highlighted by the recent ATL breakage
CORE-10413
Added:
    trunk/rostests/apitests/user32/CreateWindowEx.c   (with props)
Modified:
    trunk/rostests/apitests/user32/CMakeLists.txt
    trunk/rostests/apitests/user32/testlist.c
Modified: trunk/rostests/apitests/user32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/CMakeList…
==============================================================================
--- trunk/rostests/apitests/user32/CMakeLists.txt       [iso-8859-1] (original)
+++ trunk/rostests/apitests/user32/CMakeLists.txt       [iso-8859-1] Mon Oct 26 12:03:09
2015
@@ -4,10 +4,12 @@
     helper.c
     CreateDialog.c
     CreateIconFromResourceEx.c
+    CreateWindowEx.c
     DeferWindowPos.c
     DestroyCursorIcon.c
     DrawIconEx.c
     desktop.c
+    DestroyWindow.c
     EnumDisplaySettings.c
     GetDCEx.c
     GetIconInfo.c
Added: trunk/rostests/apitests/user32/CreateWindowEx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/CreateWin…
==============================================================================
--- trunk/rostests/apitests/user32/CreateWindowEx.c     (added)
+++ trunk/rostests/apitests/user32/CreateWindowEx.c     [iso-8859-1] Mon Oct 26 12:03:09
2015
@@ -0,0 +1,28 @@
+/*
+ * PROJECT:         ReactOS API tests
+ * LICENSE:         LGPLv2.1+ - See COPYING.LIB in the top level directory
+ * PURPOSE:         Test for CreateWindowEx
+ * PROGRAMMERS:     Thomas Faber <thomas.faber(a)reactos.org>
+ */
+
+#include <apitest.h>
+#include <winuser.h>
+
+
+START_TEST(CreateWindowEx)
+{
+    HWND hWnd;
+    DWORD dwError;
+
+    SetLastError(0x1234);
+    hWnd = CreateWindowExW(0, L"BUTTON", NULL, WS_CHILD, 0, 0, 0, 0, NULL,
NULL, NULL, NULL);
+    dwError = GetLastError();
+    ok(hWnd == NULL, "hWnd = %p\n", hWnd);
+    ok(dwError == ERROR_TLW_WITH_WSCHILD, "error = %lu\n", dwError);
+
+    SetLastError(0x1234);
+    hWnd = CreateWindowExW(0, L"BUTTON", NULL, WS_CHILD, 0, 0, 0, 0,
(HWND)(LONG_PTR)-1, NULL, NULL, NULL);
+    dwError = GetLastError();
+    ok(hWnd == NULL, "hWnd = %p\n", hWnd);
+    ok(dwError == ERROR_INVALID_WINDOW_HANDLE, "error = %lu\n", dwError);
+}
Propchange: trunk/rostests/apitests/user32/CreateWindowEx.c
------------------------------------------------------------------------------
    svn:eol-style = native
Modified: trunk/rostests/apitests/user32/testlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/testlist.…
==============================================================================
--- trunk/rostests/apitests/user32/testlist.c   [iso-8859-1] (original)
+++ trunk/rostests/apitests/user32/testlist.c   [iso-8859-1] Mon Oct 26 12:03:09 2015
@@ -6,10 +6,12 @@
 extern void func_AttachThreadInput(void);
 extern void func_CreateDialog(void);
 extern void func_CreateIconFromResourceEx(void);
+extern void func_CreateWindowEx(void);
 extern void func_DeferWindowPos(void);
 extern void func_DestroyCursorIcon(void);
 extern void func_DrawIconEx(void);
 extern void func_desktop(void);
+extern void func_DestroyWindow(void);
 extern void func_EnumDisplaySettings(void);
 extern void func_GetDCEx(void);
 extern void func_GetIconInfo(void);
@@ -41,10 +43,12 @@
     { "AttachThreadInput", func_AttachThreadInput },
     { "CreateDialog", func_CreateDialog },
     { "CreateIconFromResourceEx", func_CreateIconFromResourceEx },
+    { "CreateWindowEx", func_CreateWindowEx },
     { "DeferWindowPos", func_DeferWindowPos },
     { "DestroyCursorIcon", func_DestroyCursorIcon },
     { "DrawIconEx", func_DrawIconEx },
     { "desktop", func_desktop },
+    { "DestroyWindow", func_DestroyWindow },
     { "EnumDisplaySettings", func_EnumDisplaySettings },
     { "GetDCEx", func_GetDCEx },
     { "GetIconInfo", func_GetIconInfo },