https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c550bad4ef7237dd7b8b45...
commit c550bad4ef7237dd7b8b45b2632bba104a160a4e Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Tue Oct 30 08:54:40 2018 +0900 Commit: GitHub noreply@github.com CommitDate: Tue Oct 30 08:54:40 2018 +0900
[APITESTS] Improve CloseWindow testcase (#997)
Improve the testcase for user32!CloseWindow function. --- modules/rostests/apitests/user32/CloseWindow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/apitests/user32/CloseWindow.c b/modules/rostests/apitests/user32/CloseWindow.c index ee81056d44..c1aa51cce5 100644 --- a/modules/rostests/apitests/user32/CloseWindow.c +++ b/modules/rostests/apitests/user32/CloseWindow.c @@ -172,6 +172,8 @@ START_TEST(CloseWindow) HWND hwnd; MSG msg;
+ ok(!CloseWindow(NULL), "CloseWindow(NULL) should be failed\n"); + hIcon = LoadIcon(NULL, IDI_APPLICATION); ok(hIcon != NULL, "hIcon was NULL\n"); hCursor = LoadCursor(NULL, IDC_ARROW); @@ -195,7 +197,7 @@ START_TEST(CloseWindow) return; }
- hwnd = CreateWindowW(s_szClassName, L"SwitchToThisWindow", WS_OVERLAPPEDWINDOW, + hwnd = CreateWindowW(s_szClassName, L"CloseWindow testcase", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 100, 100, NULL, NULL, GetModuleHandleW(NULL), NULL); ok(hwnd != NULL, "CreateWindowW failed\n");