mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[USER32_APITEST]
- Add a test for the bug in win32k highlighted by the recent ATL breakage CORE-10413 svn path=/trunk/; revision=69707
This commit is contained in:
parent
949981b47f
commit
ca8fcf5402
3 changed files with 34 additions and 0 deletions
|
@ -4,10 +4,12 @@ list(APPEND SOURCE
|
||||||
helper.c
|
helper.c
|
||||||
CreateDialog.c
|
CreateDialog.c
|
||||||
CreateIconFromResourceEx.c
|
CreateIconFromResourceEx.c
|
||||||
|
CreateWindowEx.c
|
||||||
DeferWindowPos.c
|
DeferWindowPos.c
|
||||||
DestroyCursorIcon.c
|
DestroyCursorIcon.c
|
||||||
DrawIconEx.c
|
DrawIconEx.c
|
||||||
desktop.c
|
desktop.c
|
||||||
|
DestroyWindow.c
|
||||||
EnumDisplaySettings.c
|
EnumDisplaySettings.c
|
||||||
GetDCEx.c
|
GetDCEx.c
|
||||||
GetIconInfo.c
|
GetIconInfo.c
|
||||||
|
|
28
rostests/apitests/user32/CreateWindowEx.c
Normal file
28
rostests/apitests/user32/CreateWindowEx.c
Normal file
|
@ -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@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);
|
||||||
|
}
|
|
@ -6,10 +6,12 @@
|
||||||
extern void func_AttachThreadInput(void);
|
extern void func_AttachThreadInput(void);
|
||||||
extern void func_CreateDialog(void);
|
extern void func_CreateDialog(void);
|
||||||
extern void func_CreateIconFromResourceEx(void);
|
extern void func_CreateIconFromResourceEx(void);
|
||||||
|
extern void func_CreateWindowEx(void);
|
||||||
extern void func_DeferWindowPos(void);
|
extern void func_DeferWindowPos(void);
|
||||||
extern void func_DestroyCursorIcon(void);
|
extern void func_DestroyCursorIcon(void);
|
||||||
extern void func_DrawIconEx(void);
|
extern void func_DrawIconEx(void);
|
||||||
extern void func_desktop(void);
|
extern void func_desktop(void);
|
||||||
|
extern void func_DestroyWindow(void);
|
||||||
extern void func_EnumDisplaySettings(void);
|
extern void func_EnumDisplaySettings(void);
|
||||||
extern void func_GetDCEx(void);
|
extern void func_GetDCEx(void);
|
||||||
extern void func_GetIconInfo(void);
|
extern void func_GetIconInfo(void);
|
||||||
|
@ -41,10 +43,12 @@ const struct test winetest_testlist[] =
|
||||||
{ "AttachThreadInput", func_AttachThreadInput },
|
{ "AttachThreadInput", func_AttachThreadInput },
|
||||||
{ "CreateDialog", func_CreateDialog },
|
{ "CreateDialog", func_CreateDialog },
|
||||||
{ "CreateIconFromResourceEx", func_CreateIconFromResourceEx },
|
{ "CreateIconFromResourceEx", func_CreateIconFromResourceEx },
|
||||||
|
{ "CreateWindowEx", func_CreateWindowEx },
|
||||||
{ "DeferWindowPos", func_DeferWindowPos },
|
{ "DeferWindowPos", func_DeferWindowPos },
|
||||||
{ "DestroyCursorIcon", func_DestroyCursorIcon },
|
{ "DestroyCursorIcon", func_DestroyCursorIcon },
|
||||||
{ "DrawIconEx", func_DrawIconEx },
|
{ "DrawIconEx", func_DrawIconEx },
|
||||||
{ "desktop", func_desktop },
|
{ "desktop", func_desktop },
|
||||||
|
{ "DestroyWindow", func_DestroyWindow },
|
||||||
{ "EnumDisplaySettings", func_EnumDisplaySettings },
|
{ "EnumDisplaySettings", func_EnumDisplaySettings },
|
||||||
{ "GetDCEx", func_GetDCEx },
|
{ "GetDCEx", func_GetDCEx },
|
||||||
{ "GetIconInfo", func_GetIconInfo },
|
{ "GetIconInfo", func_GetIconInfo },
|
||||||
|
|
Loading…
Reference in a new issue