Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
62b9df90
Commit
62b9df90
authored
Oct 10, 2010
by
Louis Lenders
Committed by
Alexandre Julliard
Oct 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test FindWindowEx for empty window title.
parent
8d981b87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
win.c
dlls/user32/tests/win.c
+20
-0
No files found.
dlls/user32/tests/win.c
View file @
62b9df90
...
...
@@ -6237,6 +6237,25 @@ static void test_rtl_layout(void)
DestroyWindow
(
parent
);
}
static
void
test_FindWindowEx
(
void
)
{
HWND
found
;
CHAR
title
[
1
];
title
[
0
]
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
title
);
ok
(
found
==
NULL
,
"expected a NULL hwnd
\n
"
);
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
NULL
);
ok
(
found
!=
NULL
,
"found is NULL, expected a valid hwnd
\n
"
);
/* test behaviour with a window title that is an empty character */
found
=
FindWindowExA
(
0
,
0
,
"Shell_TrayWnd"
,
title
);
todo_wine
ok
(
found
!=
NULL
,
"found is NULL, expected a valid hwnd
\n
"
);
found
=
FindWindowExA
(
0
,
0
,
"Shell_TrayWnd"
,
NULL
);
ok
(
found
!=
NULL
,
"found is NULL, expected a valid hwnd
\n
"
);
}
START_TEST
(
win
)
{
HMODULE
user32
=
GetModuleHandleA
(
"user32.dll"
);
...
...
@@ -6332,6 +6351,7 @@ START_TEST(win)
test_Expose
();
test_layered_window
();
test_FindWindowEx
();
test_SetForegroundWindow
(
hwndMain
);
test_shell_window
();
test_handles
(
hwndMain
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment